Negative scores Positive scores Threshold t

Model Evaluation Simulator

Evaluating a classifier means more than reading off one accuracy number — it means understanding how every possible decision threshold trades false positives against false negatives. This simulator generates a realistic pair of score distributions (one per class), then sweeps a threshold across them to build the ROC curve and the precision-recall curve point by point, computing AUC-ROC and average precision by real trapezoidal integration rather than a lookup table. Drag the threshold to see the confusion matrix update live, or let it auto-sweep to watch both curves trace out from nothing. Adjust class separation, score noise and the positive-class prior to see exactly when ROC and PR agree — and when they don't.