Skip to content

Repository files navigation

Confusion Matrix Explorer (PyShiny App)

Docs CI License: MIT Python

This repo (confusion-matrix-explorer) contains a PyShiny app for exploring how changing a decision threshold affects a binary classifier confusion matrix and related metrics (sensitivity, specificity, precision, etc.).

Launch the App In Your Browser

Click here: Launch the Confusion Matrix Explorer

The app runs in your browser using Shinylive (Pyodide), no installation needed.

About the App

The Confusion Matrix Explorer app demonstrates how changing the decision threshold (the vertical T line) affects the confusion matrix and related metrics (sensitivity, specificity, etc.) for a binary classification problem.

How to use:

  • Use the sidebar upper slider to vary the decision threshold.
  • Use the sidebar lower slider to vary the number of bins in the histogram.
  • Compare the as you raise (or lower) the decision threshold.

To learn more:

Optional: Run on Your Machine


Screenshot (Raise the Bar)

Raise the bar

Screenshot (Default)

Default

Screenshot (Lower the Bar)

Lower the bar

License

This project is licensed under the MIT License.

About

PyShiny app for exploring how changing a decision threshold affects a binary classifier confusion matrix and related metrics (sensitivity, specificity, precision, etc.)

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages