Created
October 12, 2020 10:04
-
-
Save smazzanti/8b338eac6256603a20e462172fca2c7d to your computer and use it in GitHub Desktop.
A snippet explaining the usage of confusion_viz
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 confusion_viz import ConfusionViz | |
y_test = [0, 0, 1, 0, 1] | |
probas_test = [.1, .2, .5, .7, .9] | |
conf_viz = ConfusionViz() | |
conf_viz.fit( | |
y_true = y_test, | |
probas_pred = probas_test | |
) | |
conf_viz.show() # shows plot in notebook mode | |
conf_viz.to_html('confusion_viz.html') # stores plot as a html file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment