ML Metrics Suite (RMSE, Log Loss, ROC AUC, MCC, Kappa)
Choose regression, classifier or agreement, paste actual values and predictions or two annotators' labels, and get the standard metrics.
Funziona nel tuo browser. I tuoi file non lasciano mai il dispositivo. Scopri come verificarlo
…
Come si usa
- 1Choose the task
Regression, classifier or agreement.
- 2Paste actual values
Or first annotator.
- 3Paste predictions
Or second annotator.
- 4Set threshold
For classifiers.
- 5Read the metrics
And compare models.
Informazioni su questo strumento
Accuracy alone rarely tells you how good a model is. Regression models are judged by how large their errors are; classifiers by how well their scores rank positives above negatives and how well calibrated their probabilities are; and labelled datasets by how much annotators agree beyond chance. This suite computes the standard metrics from pasted columns: RMSE, MAE, MAPE and R² for regression; ROC AUC, log loss, Brier score, accuracy and Matthews correlation for binary classifiers; and Cohen's kappa for agreement between two labellers.
Who this is for
Data scientists, students, analysts checking a model's report, and teams creating labelled datasets.
Regression
MSE = mean of squared errors; RMSE is its square root, in the original units. MAE = mean absolute error, less sensitive to outliers. MAPE = mean absolute percentage error. R² = 1 − SSE / SST, the share of variance explained.
ROC AUC
AUC is the probability that a randomly chosen positive gets a higher score than a randomly chosen negative. It is computed exactly from ranks (the Mann-Whitney method), with ties shared. 0.5 is random; 1.0 is perfect ranking.
Log loss and Brier score
Log loss = −mean(y ln p + (1 − y) ln(1 − p)) punishes confident wrong predictions heavily. The Brier score is the mean squared error of probabilities. Both reward well-calibrated probabilities.
Thresholded metrics
At your threshold, the confusion counts give accuracy and the Matthews correlation coefficient, a balanced measure that stays meaningful when classes are imbalanced.
Cohen's kappa
Kappa = (observed agreement − chance agreement) / (1 − chance agreement). Landis and Koch's bands: below 0.2 slight, 0.2 to 0.4 fair, 0.4 to 0.6 moderate, 0.6 to 0.8 substantial and above 0.8 almost perfect.
A worked example
Ten labels with predicted probabilities give AUC 0.96, log loss 0.38, accuracy 0.80, MCC 0.60 and Brier 0.113 at a 0.5 threshold.
## Choosing a metric Choose the metric before looking at results. For forecasting money or quantities, MAE is easy to explain; RMSE suits cases where large errors are especially costly. For ranking and screening, AUC shows how well scores separate classes regardless of threshold. When probabilities feed decisions, log loss and Brier score show whether they can be trusted.
Imbalanced data
With 95% negatives, a model that always predicts negative scores 95% accuracy yet is useless. MCC, AUC and precision-recall measures reveal this; accuracy alone does not.
Reading kappa carefully
Kappa depends on how common each label is, so compare values only between similar tasks.
## Pasting data Paste values separated by commas, spaces or new lines, copied straight from a spreadsheet column. Both columns must have the same length and be in the same order. For classifiers, actual labels are 0 or 1 and predictions are probabilities of class 1. For agreement, any text or numeric labels work, such as yes and no.
Limits
Metrics on small samples are noisy; use cross-validation and confidence intervals for decisions. This is general information, not professional advice.
Esempio svolto
Ten predictions give ROC AUC 0.96 and log loss 0.38.
In breve
- Categoria: Sviluppo e dati
- Funziona nel browser, senza registrazione né caricamento.
- Le informazioni che inserisci restano sul tuo dispositivo.
- Disponibile in inglese.
- Contenuto rivisto l'ultima volta il:
- Fonte ufficiale: scikit-learn model evaluation definitions; Cohen (1960) kappa; Landis and Koch (1977) interpretation
Domande frequenti
What is a good AUC?
It depends on the problem; 0.5 is random and 1.0 perfect.
RMSE or MAE?
RMSE penalises large errors more; MAE is more robust to outliers.
Why use MCC?
It stays informative with imbalanced classes.
What does kappa measure?
Agreement between two labellers beyond chance.
What does log loss reward?
Confident, correct and well-calibrated probabilities.
Is my data stored?
No. It stays in your browser.
