Skip to content

Instantly share code, notes, and snippets.

@dongr0510
Created September 16, 2020 19:57
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 dongr0510/45af0e48d738754ba38499ecfc9a16eb to your computer and use it in GitHub Desktop.
Save dongr0510/45af0e48d738754ba38499ecfc9a16eb to your computer and use it in GitHub Desktop.
cr_y1 = classification_report(ytest[:,0],yhat[:,0])
cr_y2 = classification_report(ytest[:,1],yhat[:,1])
cr_y3 = classification_report(ytest[:,2],yhat[:,2])
cr_y4 = classification_report(ytest[:,3],yhat[:,3])
cr_y5 = classification_report(ytest[:,4],yhat[:,4])
print (cr_y1)
-----------------------------
precision recall f1-score support
0 0.85 0.88 0.86 1193
1 0.81 0.76 0.79 807
accuracy 0.83 2000
macro avg 0.83 0.82 0.83 2000
weighted avg 0.83 0.83 0.83 2000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment