Metrics Calculator
Accuracy, precision, recall, F1 and specificity from a confusion matrix, with macro and micro averages.
NeweasyRuns in your browser
How it works
- Accuracy
- Precision
- Recall (sensitivity)
- Specificity
- F1 score
Multi-class averages
Each class is scored one-vs-rest (that class is “positive”, everything else “negative”).
- Macro: the plain mean of the per-class scores. Every class counts equally, so rare classes matter as much as common ones.
- Micro: pool TP, FP and FN across all classes, then compute the score. For single-label problems micro precision = micro recall = micro F1 = accuracy.
- Weighted: per-class scores averaged by how many true samples each class has.
- When a ratio is 0 ÷ 0 it is undefined; macro and weighted averages count it as 0 (the scikit-learn default).
Related tools
AI / MLNew
Param Counter
Count parameters and fp32 memory for Dense, Conv2D, Embedding, LayerNorm and attention layers.
AI / MLNew
LR Schedule Visualiser
Plot learning-rate schedules (cosine, warmup, step, one-cycle…) and overlay up to three.
AI / MLNew
Conv Shape Calculator
Track tensor shapes through stacked Conv2D, MaxPool and AvgPool layers.