Skip to content

Instantly share code, notes, and snippets.

@smazzanti
Created October 12, 2020 10:04
Show Gist options
  • Save smazzanti/8b338eac6256603a20e462172fca2c7d to your computer and use it in GitHub Desktop.
Save smazzanti/8b338eac6256603a20e462172fca2c7d to your computer and use it in GitHub Desktop.
A snippet explaining the usage of confusion_viz
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