Skip to content

Instantly share code, notes, and snippets.

@dongr0510
Created September 16, 2020 19:56
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/4870b469e9d4e3f4a5a3dca6bafee200 to your computer and use it in GitHub Desktop.
Save dongr0510/4870b469e9d4e3f4a5a3dca6bafee200 to your computer and use it in GitHub Desktop.
cm_y1 = confusion_matrix(ytest[:,0],yhat[:,0])
cm_y2 = confusion_matrix(ytest[:,1],yhat[:,1])
cm_y3 = confusion_matrix(ytest[:,2],yhat[:,2])
cm_y4 = confusion_matrix(ytest[:,3],yhat[:,3])
cm_y5 = confusion_matrix(ytest[:,4],yhat[:,4])
print (cm_y1)
---------------
[[1053 140]
[ 191 616]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment