Skip to content

Instantly share code, notes, and snippets.

@nitin-bommi
Created June 18, 2020 14:30
Show Gist options
  • Save nitin-bommi/d50c4a9654b36035789b96860d2eb20e to your computer and use it in GitHub Desktop.
Save nitin-bommi/d50c4a9654b36035789b96860d2eb20e to your computer and use it in GitHub Desktop.
f1-score
# To compute the F1 score, simply call the f1_score() function:
from sklearn.metrics import f1_score
f1_score(y_train_5, y_train_pred)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment