When to use it
Use when evaluating binary or multi-class classifier model performance.
Required Inputs
- True Positives (TP)
- False Positives (FP)
- True Negatives (TN)
- False Negatives (FN)
Calculate classification performance metrics including Accuracy, Precision, Recall (Sensitivity), Specificity, F1-Score, F-beta, and Matthews Correlation Coefficient (MCC).
Run this test live in StatLab npm i @statlab/coreUse when evaluating binary or multi-class classifier model performance.
Precision = TP/(TP+FP), Recall = TP/(TP+FN), F1 = 2*P*R/(P+R), MCC = (TP*TN - FP*FN)/√((TP+FP)(TP+FN)(TN+FP)(TN+FN))
from sklearn.metrics import classification_report, matthews_corrcoef
# Compute precision, recall, f1-score, and MCC
library(caret)
confusionMatrix(factor(preds), factor(actuals))
import { confusionMetrics } from '@statlab/core';
const m = confusionMetrics({ tp: 450, fp: 50, fn: 100, tn: 1400 });
Continuous A/B testing, statistical telemetry analysis, and automated feedback loops for live backend services.
Explore VoxelPulse →Fixed-price AI release-readiness sprints, automated regression testing, and reliability statistical benchmarks.
Explore VoxelAssurance →Explore static calculators across the StatLab inference engine suite.