Skip to content

Instantly share code, notes, and snippets.

@letthedataconfess
Created December 29, 2021 18:21
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 letthedataconfess/10d32757638b04988edfa258d9bb44a7 to your computer and use it in GitHub Desktop.
Save letthedataconfess/10d32757638b04988edfa258d9bb44a7 to your computer and use it in GitHub Desktop.
from sklearn.metrics import f1_score
f1_score(y_true, y_pred, average='weighted')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment