Skip to content

Instantly share code, notes, and snippets.

@joao-timescale
Created November 26, 2017 12:41
Show Gist options
  • Save joao-timescale/7977d6520d7b83ce41afa18e99d847d4 to your computer and use it in GitHub Desktop.
Save joao-timescale/7977d6520d7b83ce41afa18e99d847d4 to your computer and use it in GitHub Desktop.
k-NN confusion matrix
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