Skip to content

Instantly share code, notes, and snippets.

@j450h1
Last active June 14, 2020 04:15
Show Gist options
  • Save j450h1/d23af75a2f1f2026ff0feb1bd2d2b770 to your computer and use it in GitHub Desktop.
Save j450h1/d23af75a2f1f2026ff0feb1bd2d2b770 to your computer and use it in GitHub Desktop.
rf_f1 = MulticlassClassificationEvaluator(labelCol="indexedLabel",metricName='f1').evaluate(predictions)
print('F1 Score', rf_f1)
F1 Score 0.6919632934386234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment