Skip to content

Instantly share code, notes, and snippets.

@varrek
Created January 15, 2022 20:23
Show Gist options
  • Save varrek/da37475e9c7303dc9653d93f8c62810c to your computer and use it in GitHub Desktop.
Save varrek/da37475e9c7303dc9653d93f8c62810c to your computer and use it in GitHub Desktop.
from sklearn.metrics import f1_score
f1_score(df_test['targetcat'], df_test['prediction'],average='macro')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment