Blog
Machine learning

Compare many models with AutoML

How AutoML ranks models on held-out data, which score to trust with a rare class, and how to spot leakage.

Skari team6 min

The moment you try to build a prediction model with machine learning, this question comes up.

"Random forest? XGBoost? Which model fits best?"

Running one model is easy. Comparing many under the same conditions, and trying their settings one by one, takes forever. So here is what AutoML (automated modeling) is, how it compares many models at once, and how to read what it gives you.

What AutoML is

AutoML trains several machine learning models on the same data, by the same yardstick, and picks the best fit by following a fixed set of rules.

Think of it as choosing models, trying settings (hyperparameter tuning) and validating — the jobs you would do by hand — joined into one flow.

When to use it

  • Classification — predicting yes/no or a grade (signs up or not, buys or not)
  • Regression — predicting a number (amount spent, a score)

It suits work where the goal is "how well can we predict?" If the goal is "why does this happen?", an explanatory model such as regression may fit better.

An example

Take the bank telemarketing data often used in statistics classes.

  • Data — 4,521 customers · 17 columns
  • Target — whether the customer opened a term deposit (y)
  • Customers who did — 521 (11.5%)
  • Available information — age, job, balance, contact method, outcome of the last campaign and more

How AutoML works

  1. Set aside a test set first for checking the result
  2. Train models such as LightGBM, CatBoost, XGBoost, random forest, neural networks and logistic regression with cross-validation
  3. Rank them on one metric
  4. Try an ensemble that blends the best ones
  5. Check one last time on the held-out data

Step 5 is the key. Only data the search never touched can tell you whether the model also works for customers it has never seen.

Before you run it

  • One row = one case (e.g. one customer)
  • Decide the column to predict (the target)
  • Drop identifier columns such as customer IDs
  • Use only values known at the time of prediction

The last one matters most. Call duration, for example, is only known once the call ends, so you cannot use it to predict sign-ups in advance.

When values that only exist after the outcome slip in, scores look great but the model is useless in practice. This is called data leakage.

Reading the results

① Which score to compare

If only 11.5% of customers signed up, predicting "nobody signs up" already gives 88.5% accuracy. So with a rare class, compare with PR-AUC or F1, which show how well the rare cases are found. For regression, use RMSE and MAE.

② Compare with a simple model too

Check that the complex model is clearly better than a simple one such as logistic regression. If the gap is small, the easier-to-explain model may be the better choice.

③ What moved the predictions

SHAP importance shows how far each variable moved the predictions. Remember it is a contribution to the prediction, not a cause.

④ Can you trust the model?

Also check for overfitting, columns that look like leakage and whether predicted probabilities match the observed rates.

Reporting it

  • Data size and how the test set was split off
  • Models compared and the ranking metric
  • Final score on the test set
  • Key variables and cautions for interpretation

To predict term-deposit sign-ups, eight models were compared by cross-validated PR-AUC, and the weighted ensemble performed best. On a held-out test set not used in the search (904 customers), PR-AUC was .497 and accuracy 90.6%; the outcome of the previous campaign and the month of contact contributed most to the predictions.

Example sentence · the numbers are made up

In Skari

In Skari Auto Modeling, first pick classification, regression or time-series forecasting under "What do you want to predict?", then upload a file.

On the data screen you check each column's role. Identifier columns are left out by default, and a column that predicts the target almost perfectly gets a "check for leakage" tag.

There are only three settings: the target, the approach (automatic or advanced) and the search time (quick 2 min · standard 5 min · thorough 10 min).

Set three things and see the chosen settings and why in the summary on the right — built-in example “Predict customer churn” (1,214 customers, target churn)
Set three things and see the chosen settings and why in the summary on the right — built-in example “Predict customer churn” (1,214 customers, target churn)

Try Auto Modeling on your data

Or start right away with an example dataset

Open Auto Modeling

The settings summary on the right states, with reasons, how many rows are held out and which score ranks the models. With a rare class like the example, the ranking metric is set to PR-AUC, and the random seed is fixed, so the same data and settings give the same result.

When the search ends, everything comes together in one report with seven sections: conditions, recommended model, ranking, final evaluation, influence by variable, reliability checks and cautions.

Top of the report — PR-AUC on the held-out rows and the recommended model (example result)
Top of the report — PR-AUC on the held-out rows and the recommended model (example result)

The band of numbers at the top shows the score measured on the held-out rows, and the key-result sentence compares it with picking at random.

Model ranking, with the “Always the commoner class (baseline)” row at the bottom (same example)
Model ranking, with the “Always the commoner class (baseline)” row at the bottom (same example)

At the bottom of the ranking table, a baseline row shows the accuracy of "always predicting the most common class", so a high accuracy cannot fool you. When the board includes a simple model such as a linear one, a table comparing it with the recommended model shows whether the winner is really ahead.

Influence by variable uses SHAP importance (or permutation importance in runs where the engine returns no SHAP values), with a note that it is a contribution to the prediction, not a cause.

Influence by variable — this example run came back with permutation importance
Influence by variable — this example run came back with permutation importance

The reliability checks list results item by item: data leakage, class imbalance, overfitting and probability calibration, among others.

Model reliability checks — a result and an explanation for each item (same example)
Model reliability checks — a result and an explanation for each item (same example)

You can download the report as Word. Save the recommended model and the model library opens: predict one case or upload a CSV to score many at once, then go on to What-if and monitoring.

Wrapping up

The heart of AutoML is comparing many models fairly, by one standard. Check that you validated on held-out data, compared with a score that suits your data and kept leakage out, and your prediction model becomes far more trustworthy.

Not sure which model to choose?The Academy's classification and prediction guide shows how to choose by data shape, cost of errors and validation →

Keep reading

Every feature free through Dec 31, 2026

Run the analyses from these posts on your own data