HomeMachine Learning & Neural NetworksConfusion Matrix Threshold Lab

Confusion Matrix Threshold Lab

Drag a decision threshold across two overlapping score distributions and watch a real 2x2 confusion matrix recount every sample live, with precision, recall, F1 and accuracy computed straight from those counts.

Machine Learning & Neural Networks2DEasy60 FPS📱 Mobile-adapted⇄ 3D version
model-evaluation-metrics ↗ Open standalone

A classifier's accuracy claim is only ever true at one specific threshold. This simulator makes that threshold something you can grab: two overlapping synthetic score distributions (one per class) sit above a real 2x2 confusion matrix that recounts every sample against the threshold on every move — no cached curve, no lookup table, just true positives, false positives, false negatives and true negatives tallied from the actual data each time the line moves. Precision, recall, F1 and accuracy are then read straight off those four counts, so you can watch exactly how tightening or loosening the threshold trades one error type for the other, and where accuracy quietly stops telling the whole story.

⚙ Under the hood

Drag a decision threshold across two overlapping Gaussian score distributions and watch a real 2x2 confusion matrix recount every sample live, with precision, recall, F1 and accuracy computed straight from those counts.

confusion-matrixprecision-recallclassification-metrics

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)