TokenPad
Evaluation

Confusion Matrix Calculator

Precision, recall and F1 — with a warning when accuracy is lying to you.

Counts, one per line: tp, fp, fn, tn

24 characters4 lines0 tokensor drop a file

Confusion MatrixExact
0Token change
Token change0no change
Input tokens0what you pasted
Output tokens0what you would send
Token cost of this result
Output tokens0
As input$0.00
× 100K requests$0.00

Everything on this page runs in your browser. Nothing you paste is transmitted, because there is no server here to transmit it to.

Result
 

Why accuracy is usually the wrong number

On an imbalanced problem — moderation, fraud, anomaly detection — accuracy is dominated by the majority class. A classifier that always predicts negative on a five percent positive rate scores ninety-five percent and is worthless.

The calculator states the base rate and what a trivial always-negative classifier would score, so you can see immediately whether your accuracy figure means anything.

Precision against recall is a product decision

High precision, lower recall means missing cases rather than raising false alarms — right when a false positive is expensive, such as auto-rejecting a legitimate order.

High recall, lower precision means catching nearly everything and flagging some innocents — right when a miss is expensive, such as a safety filter. Neither is better in general, and the model cannot make the choice for you.

Frequently asked questions

What is a good F1?
Entirely task-dependent, so compare against a baseline rather than an absolute. Beat the majority-class classifier, then beat your previous version.
How do I move precision or recall?
On a classifier with a confidence score, by moving the threshold — that trades one directly for the other. On a prompt-based classifier, by changing how the borderline cases are described in your instructions and examples.

More evaluation tools