Skip to content

Instantly share code, notes, and snippets.

@j450h1
Created June 14, 2020 05:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j450h1/20614c4ae7af78d2d209df9839a8ca1e to your computer and use it in GitHub Desktop.
Save j450h1/20614c4ae7af78d2d209df9839a8ca1e to your computer and use it in GitHub Desktop.
# evaluate the model with test set
evaluator = MulticlassClassificationEvaluator()
print('F1-Score ', evaluator.evaluate(prediction {evaluator.metricName: 'f1'}))
F1-Score 0.6736596736596737
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment