Skip to content

Instantly share code, notes, and snippets.

@darcwader
Created October 29, 2017 13:41
Show Gist options
  • Select an option

  • Save darcwader/7c2b76d845199addb0888cd15883309e to your computer and use it in GitHub Desktop.

Select an option

Save darcwader/7c2b76d845199addb0888cd15883309e to your computer and use it in GitHub Desktop.
spam
plt.matshow(confusion_matrix(messages['label'], predictions), cmap=plt.cm.binary, interpolation='nearest')
plt.title('confusion matrix')
plt.colorbar()
plt.ylabel('expected label')
plt.xlabel('predicted label')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment