davhbrown / interactive_classification_metrics

Get an intuitive sense for the ROC curve and other binary classification metrics with interactive visualization.
https://www.glidergrid.xyz/post-archive/understanding-the-roc-curve-and-beyond
MIT License
4 stars 0 forks source link
binary-classification machine-learning matthews-correlation-coefficient roc-curve

Interactive classification metrics

Get an intuitive sense for the ROC curve and other binary classification metrics with interactive visualization.

example animation

This is a teaching and understanding tool. Change the statistics of the normal distributions or the classification threshold to see how it affects different classification metrics. Read the blog post for more information.

* Matthew's Correlation Coefficient (MCC) represented as unit-normalized MCC as in Cao et al. 2020.

Install & Run

From PyPI

Create a dedicated python environment (recommended).

python3 -m pip install interactive-classification-metrics

Run with Bokeh server locally from the command line:

run-app

Opens a web browser where you can use the application.

By cloning the repo

  1. Clone this repo git clone https://github.com/davhbrown/interactive_classification_metrics.git
  2. cd interactive_classification_metrics
  3. Create a dedicated python environment is recommended
  4. pip install -r requirements.txt

Run with Bokeh server locally from the command line:

bokeh serve --show serve.py

Opens a web browser where you can use the application.

Inspired by

Acknowledgments

Special thanks to Dr. Davide Chicco (@davidechicco) for valuable feedback on this project.