TSToolSphere

Confusion Matrix Calculator

student100% Client-Side

Compute accuracy, precision, recall, specificity, and F1 score from a binary confusion matrix.

Neural Network Parameter & FLOPs Calculator

Estimates total trainable parameters and forward-pass FLOPs for a fully-connected (dense) network from its layer sizes.

Total parameters
235.15K (235,146)
FLOPs per sample (forward pass)
469.90K
Total FLOPs (batch of 1)
469.90K
LayerShapeParametersFLOPs (per sample)
1784256200,960401,664
225612832,89665,664
3128101,2902,570

FLOPs counted as 2 per multiply-add (industry convention). Only covers fully-connected layers — convolutional/attention layers have different FLOP formulas not modeled here.

About Confusion Matrix Calculator

Confusion Matrix Calculator

Turns a binary classifier's confusion matrix (True Positive, False Positive, False Negative, and True Negative counts) into the standard evaluation metrics: accuracy, precision (positive predictive value), recall (sensitivity/true positive rate), specificity (true negative rate), and F1 score (the harmonic mean of precision and recall).

These metrics answer different questions about a model's performance, and no single one tells the whole story. Accuracy measures overall correctness but can be misleading on imbalanced data; precision measures how trustworthy positive predictions are; recall measures how many actual positives were caught; F1 balances the latter two into one number.

Typical use cases: evaluating a machine learning classifier during coursework or research, sanity-checking a model's reported metrics by recomputing them from the raw counts, or comparing two models on the same test set.

Enter your four counts and every metric recalculates instantly, with clear labels so you don't have to memorize which formula produces which value.

Educational Guides & Tutorials

Frequently Asked Questions

Help Us Improve Confusion Matrix Calculator

Did you find this tool helpful? Tell us how we can make it even better, or report a bug or request a new feature in under 1 minute.

Submit Feedback