Top 18 metrics to evaluate your machine learning algorithm

Updated: October 16, 2026 10 minutes read
Brickclay Team
Written by

Brickclay Team

Yasir Aleem verified image
Reviewed by

Yasir Aleem

A model with 99% accuracy can still be useless. If you are detecting fraud that shows up in 1% of transactions, a model that flags nothing scores 99% and catches zero criminals. That gap between a good-looking number and a model that actually works is why evaluation metrics matter. Picking the right metric is half the job of building a machine learning model. Accuracy, precision, recall, F1, ROC-AUC: each answers a different question, and using the wrong one hides the problems you most need to see. This guide breaks down 18 evaluation metrics across classification, regression, and probabilistic models. For each one you get the plain-English definition, the formula, and the situations where it is the right tool, so you can judge model performance with confidence instead of guessing.

Key takeaways

  • If fraud appears in 1% of transactions, a model that flags nothing scores 99% accuracy and catches zero fraud. Treat accuracy as a first glance on balanced datasets only.
  • Precision matters when a false positive is expensive, as in spam filtering. Recall takes priority when a missed positive is the costly error, as in cancer screening or fraud detection.
  • F1 is the harmonic mean of precision and recall, so it only rises when both are healthy. It is the default summary metric for most classification problems on imbalanced data.
  • AUC-ROC runs from 0.5 (random guessing) to 1.0 (perfect separation) across all thresholds. On heavily imbalanced data it can hide weak rare-class performance, so check Precision-Recall AUC alongside it.
  • MAE treats every error equally in the target’s own units, while RMSE punishes large misses. If RMSE is much larger than MAE, a few big errors are dominating and deserve a look.
  • MCC ranges from -1 to +1 and only scores high when the model does well on positives and negatives alike, which makes it a strong single number for skewed binary problems.

Classification metrics: Accuracy, Precision, Recall (Sensitivity), F1 Score, AUC-ROC, Confusion Matrix.

Regression metrics: Mean Absolute Error (MAE), Mean Squared Error (MSE), Root Mean Squared Error (RMSE), R-squared (R²).

Advanced and imbalanced-data metrics: Mean Bias Deviation (MBD), Cohen’s Kappa, Matthews Correlation Coefficient (MCC), Kullback-Leibler Divergence.

Probabilistic and threshold metrics: Log Loss, Precision-Recall AUC.

Cross-cutting evaluation methods: Feature Importance, Cross-Validation.

Each metric below includes its formula and the scenarios where it gives you the clearest read on model performance.

Machine learning evaluation metrics

The metrics below are grouped by the kind of model they judge. Start with the classification metrics if your model predicts a category, or skip to regression if it predicts a number.

Accuracy

Accuracy is the share of predictions your model got right, out of all predictions made. A model that correctly classifies 95 out of 100 cases has 95% accuracy. It is the simplest metric to read, which is exactly why it misleads. On imbalanced data, accuracy rewards models that ignore the rare class. If 99% of transactions are legitimate, a model that labels everything “legitimate” scores 99% and catches no fraud at all. Use accuracy as a first glance on balanced datasets, then reach for precision and recall when the classes are uneven. Accuracy Formula

Precision

Precision answers a narrow question: of everything the model flagged as positive, how much was actually positive? A precision of 80% means 4 out of 5 positive predictions were correct. Precision matters most when a false positive is expensive. In spam filtering, high precision means real emails rarely get dumped in the spam folder. The cost of precision is that chasing it too hard makes the model cautious, so it misses real cases. That trade-off is what recall measures. Precision Formula

Recall (sensitivity)

Recall flips the question: of all the actual positives that exist, how many did the model catch? A recall of 75% means the model found three-quarters of the real cases and missed the rest. Recall is the priority when missing a positive is the costly error. In cancer screening or fraud detection, you would rather investigate a few false alarms than let a real case slip through. Precision and recall pull against each other, which is why the F1 score exists to balance them. Recall Formula

F1 score

The F1 score combines precision and recall into a single number using their harmonic mean. It only rises when both are healthy, so a model cannot game it by maxing one and ignoring the other. Reach for F1 when false positives and false negatives both carry real cost and you need one number to compare models. It is the default summary metric for most classification problems on imbalanced data. F1 Score Formula

Area under the ROC curve (AUC-ROC)

AUC-ROC measures how well your model separates the positive class from the negative class across every possible decision threshold. It ranges from 0.5 (random guessing) to 1.0 (perfect separation). An AUC of 0.95 signals a model that ranks positives above negatives almost every time. The strength of AUC-ROC is that it does not depend on a single threshold, so it tells you about the model’s ranking ability overall. For the precise formulas behind each of these metrics, scikit-learn’s model evaluation documentation is the canonical reference. Be careful on heavily imbalanced data, where a high AUC-ROC can still hide poor performance on the rare class.In those cases, check Precision-Recall AUC alongside it.

Confusion matrix

The confusion matrix is a table that lays out exactly where a model succeeds and fails: true positives, true negatives, false positives, and false negatives, all in one view. Every classification metric above is derived from these four numbers. Reading the matrix directly shows which error the model makes most, which is often what you fix first when moving machine learning models in production.

Regression model evaluation metrics

Mean absolute error (MAE)

MAE is the average size of the model’s errors, measured in the same units as what you are predicting. If you are forecasting revenue in dollars, an MAE of 500 means the model is off by $500 on average. It is easy to explain and treats every error equally, which makes it a solid default for regression. Because it does not punish large errors more than small ones, pair it with RMSE when big misses are especially costly. MAE Formula

Mean squared error (MSE)

MSE averages the squares of the errors, which makes large mistakes count far more than small ones. A single big miss moves MSE much more than several small ones. That sensitivity is the point: when outliers or large errors are dangerous, MSE surfaces them. The downside is that squaring changes the units, so the raw number is hard to interpret on its own. RMSE fixes that. MSE Formula

Root mean squared error (RMSE)

RMSE is the square root of MSE, which brings the error back into the original units while keeping MSE’s heavy penalty on large misses. It is the most widely reported regression metric for exactly this reason. Use RMSE when you want one interpretable number that still punishes big errors. Compare it against MAE: if RMSE is much larger than MAE, a few large errors are dominating, and that is worth investigating. RMSE Formula

R-squared (R²)

R-squared tells you what fraction of the variation in your target the model actually explains, on a scale from 0 to 1. An R² of 0.85 means the model accounts for 85% of the variability, with the rest left to noise or missing factors. It is the quickest way to communicate regression quality to a non-technical audience. Treat a high R² with caution, though: it can be inflated by adding more variables, so check adjusted R² when comparing models with different numbers of features. R2 Formula

Advanced, probabilistic and validation metrics

Mean bias deviation (MBD)

MBD measures whether your model systematically over-predicts or under-predicts. Unlike error metrics that only care about the size of mistakes, MBD keeps the direction, so positive values mean the model runs high and negative values mean it runs low. It is the metric that catches a model quietly drifting in one direction, which matters in forecasting where a consistent bias compounds over time. MBD Formula

Cohen’s kappa

Cohen’s Kappa measures how well predictions agree with actual labels, after stripping out the agreement you would expect from pure chance. That correction makes it far more honest than accuracy on imbalanced data. A Kappa near 1 means strong agreement beyond luck, while a value near 0 means the model is barely better than random guessing. Use it when class distribution is skewed and you want a reality check on how good the model truly is. Kappa Formula

Matthews correlation coefficient (MCC)

MCC gives a single balanced score for binary classification that accounts for all four confusion-matrix categories at once. It ranges from -1 (total disagreement) through 0 (random) to +1 (perfect prediction). MCC is one of the most reliable single metrics for imbalanced binary problems, because it only produces a high score when the model performs well across positives and negatives alike. If you can track only one classification number on skewed data, MCC is a strong choice. MCC Formula

Kullback-Leibler divergence (KL Divergence)

KL Divergence measures how far one probability distribution sits from another, usually how far your model’s predicted distribution is from the true distribution of the data. Lower means closer. It is the go-to metric for probabilistic models and generative tasks, where you care about matching a whole distribution rather than hitting individual labels. It is not symmetric, so the order of comparison matters. Kullback-Leibler Divergence Formula

Log loss

Log loss scores how confident each prediction was, and whether it was right. A model that predicts the correct class with 90% confidence scores better than one that squeaks in at 51%, and a confident wrong answer is punished hard. Use Log Loss when you care about well-calibrated probabilities, not just the final label, for example in risk scoring or any system where the probability itself drives a downstream decision. Lower Log Loss is better.

Precision-recall AUC

Precision-Recall AUC summarizes the trade-off between precision and recall across every threshold, in a single number. On heavily imbalanced data, it gives a clearer read than AUC-ROC because it focuses on performance for the rare positive class. When positives are rare and matter most, fraud, disease, defaults, trust PR-AUC over ROC-AUC.

Feature importance

Feature importance ranks how much each input contributes to the model’s predictions. It answers “what is actually driving this model,” which is essential for debugging, for trust, and for cutting features that add noise. Beyond improving the model, importance scores make results explainable to stakeholders who need to understand why a model decided what it did, a requirement that AI governance policies increasingly spell out.

Cross-validation

Cross-validation tests whether your model’s performance holds up on data it has not seen, by splitting the dataset into folds, training on some and validating on the rest, then rotating. The averaged result is a far more honest estimate than a single train-test split. It is the standard defense against overfitting. A model that scores well in cross-validation is one you can actually trust to generalize, not one that memorized the training set.

How Brickclay helps you build models worth trusting

Choosing the right metric is only useful if the model behind it is built and evaluated properly. That is the work Brickclay does.

Our data science services teams build, evaluate, and deploy machine learning models with the metric that fits the job instead of the one that looks good in a slide. We tune for the errors that actually cost your business, validate against unseen data to catch overfitting before it ships, and monitor models in production so accuracy does not quietly decay over time.

We have done this across churn prediction, fraud detection, forecasting, and classification problems in regulated industries, including our machine learning churn-prediction project for a subscription business.

If you are building a model and want it evaluated against the metrics that matter, or you have one in production that is drifting, let’s talk.

Related resources

Work with Brickclay

Whatever you just read about, we build it.

Brickclay is a digital transformation partner with multiple disciplines in one team: data and analytics, AI and automation, cloud infrastructure, product engineering, brand experience and digital marketing. 100+ specialists. 300+ projects.

Microsoft Solutions Partner
Book a 15-minute call

Tell us what you're building. We'll tell you which of our teams you need, and which you don't.

FAQ

The most important machine learning performance metrics include accuracy, precision, recall, F1 score, and AUC-ROC. These metrics help evaluate machine learning algorithms by measuring how well they predict outcomes, classify data, and minimize errors. The choice of metrics depends on the model type and the business goal it supports.
While accuracy measures overall correctness, it can be misleading when dealing with imbalanced datasets. Other classification performance evaluation metrics like precision, recall, and F1 score offer deeper insight into model reliability, especially when false positives or negatives carry different business consequences.
Precision measures how many predicted positives are truly correct, while recall measures how many actual positives were identified by the model. Raising one usually lowers the other, so the right balance depends on which error costs more.
The F1 score combines precision and recall into a single value, helping businesses compare models objectively. It’s particularly effective when data is imbalanced or when both false positives and false negatives affect decision-making.
The AUC-ROC curve measures how well a model distinguishes between classes. A higher AUC indicates stronger classification ability, making it an essential metric for classification performance evaluation in AI systems.
Common regression model performance metrics include Mean Absolute Error (MAE), Root Mean Squared Error (RMSE), and R² score. These metrics show how accurately the model predicts continuous values and help assess consistency across test data.
Cross-validation enhances reliability by training and testing a model on multiple subsets of data. This exposes overfitting and gives a more honest estimate of how the model will perform on new data.
Model robustness refers to how consistently a model performs when faced with new, unseen, or slightly noisy data. A robust model keeps its accuracy when production data drifts away from the training data.
Accurate evaluation metrics allow businesses to trust AI-driven predictions. The right metric tells you which errors the model makes and what those errors will cost before you put it in front of customers.
Brickclay offers end-to-end solutions for evaluating, refining, and deploying machine learning models. We pick the metric that matches the business cost of each error, validate on unseen data, and monitor the model after launch.
Yasir Aleem

Yasir Aleem

Co-Founder & CEO, Brickclay

Yasir Aleem is the founder and CEO of Brickclay, based in Boston. He has been building business intelligence systems for more than a decade, first as a BI architect at OZ and ACTS, and since 2016 as the person running Brickclay's data, analytics and AI work. He holds an MS from FAST-NUCES and is a Microsoft Certified IT Professional. He writes here about data engineering, BI, machine learning and AI, and sits on the corporate advisory boards of National Textile University.

Related Articles

Recommended Reading

AI and ML Integration: Challenges and Best Practices

AI and ML Integration: Challenges and Best Practices

Gartner says 60% of AI projects fail on data readiness. See the real AI and ML integration challenges, proven techniques, and best practices that work in 2026.

How many algorithms are used in machine learning?

How many algorithms are used in machine learning?

There is no single number, but ML algorithms fall into a few main families. Here is how many types exist, the key algorithms in each, and where they are used.

Technical overview of anomaly detection machine learning

Technical overview of anomaly detection machine learning

A technical guide to anomaly detection in machine learning: the anomaly types, detection techniques, supervised vs unsupervised methods, and how to choose.

10 AI/ML implementation challenges for businesses

10 AI/ML implementation challenges for businesses

The 10 biggest AI and ML implementation challenges businesses hit, from data quality to scaling, each with a practical fix backed by current research.