Created
September 16, 2020 19:57
-
-
Save dongr0510/45af0e48d738754ba38499ecfc9a16eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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