Created
November 26, 2017 12:41
-
-
Save joao-timescale/7977d6520d7b83ce41afa18e99d847d4 to your computer and use it in GitHub Desktop.
k-NN confusion matrix
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
from sklearn.metrics import confusion_matrix | |
cnf_matrix = confusion_matrix(test_data_labels, prediction) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment