What you will be able to do
- Name the algorithms AutoML tries for classification, regression and forecasting, and exclude frameworks from the search
- Choose a primary metric and a timeout, and predict which trial AutoML will mark as best
- Control which columns AutoML uses through exclude_cols, semantic type annotations and per-column imputers
- Add feature-table features to an AutoML run with feature_store_lookups
- Turn on Shapley values in a generated trial notebook and edit the best trial's code
Key concept
Primary-metric-ranked trial search — An AutoML run trains many trials, each one an algorithm from an allowed framework with its own hyperparameters and preprocessing. It scores every trial on one primary metric within a time budget, and the trial with the best score becomes the best model.
1.The candidate algorithms AutoML searches
AutoML picks a model by searching for one. You give it a dataset and a problem type, and it trains and tunes models from several algorithm families in parallel. Each attempt is a trial: one algorithm, one set of hyperparameters, and one generated notebook that holds its code. Model selection in AutoML means choosing among these trials, so the first thing to know is which algorithms can appear among them.
| Problem type | Candidate algorithms |
|---|---|
| Classification | Decision trees, random forests, logistic regression, XGBoost, LightGBM |
| Regression | Decision trees, random forests, linear regression with stochastic gradient descent, XGBoost, LightGBM |
| Forecasting (classic compute) | Prophet, Auto-ARIMA |
| Forecasting (serverless) | Prophet, Auto-ARIMA, DeepAR |
For classification and regression, the tree, forest and linear models come from scikit-learn, and the two boosting families come from their own libraries. That gives three frameworks: sklearn, xgboost and lightgbm. The exclude_frameworks parameter (or the matching option under Advanced Configuration in the UI) takes any of these names and removes that framework from the search. The default is an empty list, so every framework is considered. Excluding one is useful when you already know you cannot deploy it. Say a serving environment has no LightGBM: passing ["lightgbm"] keeps the run from spending time on trials you would never ship.
Checkpoint 1 of 10· Check yourself
A team's serving environment cannot run scikit-learn models, so they start an AutoML classification run with exclude_frameworks=["sklearn"]. Which algorithms can the trials in this run still use?
exclude_frameworks removes a whole framework. For classification, decision trees, random forests and logistic regression all come from scikit-learn, so excluding "sklearn" drops all three and leaves only the xgboost and lightgbm trials.
“the decision tree, random forests, logistic regression, and linear regression with stochastic gradient descent algorithms are based on scikit-learn.”Source: docs.databricks.com
2.The primary metric picks the winner; the timeout ends the search
Every trial gets a score on one metric, and that metric alone decides the ranking. You set it with primary_metric in the API or the evaluation metric field in the UI. When the run finishes, the runs table shows the top-ranked trial in its first row as the best model. If you change the metric, a different trial may come out on top, even though the trained models themselves are the same.
| Problem type | Default primary_metric | Other supported values |
|---|---|---|
| Classification (databricks.automl.classify) | f1 | log_loss, precision, accuracy, roc_auc |
| Regression (databricks.automl.regress) | r2 | mae, rmse, mse |
AutoML chooses "best" in the right direction for whichever metric you pick. A higher r2 wins, while a lower rmse or log_loss wins. For why some metrics are maximized and others minimized, see Metric direction: higher-is-better vs lower-is-better (neg_ scorers, minimized losses). In AutoML, the metric choice is also a choice about which trial you get, so pick the metric your business cares about before you start the run.
On Databricks Runtime 11.0 ML and above, no parameter does that. The search is limited by time, not by trial count. timeout_minutes defaults to 120 minutes and must be at least 5. If the timeout is too short for even one trial to finish, AutoML reports an error. More time lets AutoML run more trials and gives it a better chance of finding a more accurate model. The older max_trials parameter is not supported from 11.0 onward. On 10.4 LTS ML and below, the UI's default stop was 60 minutes or 200 trials, whichever came first. Classification and regression runs on 10.4 LTS ML and above also stop early once the validation metric stops improving, so a run can end before its timeout.
Checkpoint 2 of 10· Check yourself
An analyst starts an AutoML classification run through the API without setting primary_metric. The business cares about roc_auc. When the run finishes, which trial does the first row of the runs table show as the best model?
Trials are ranked on one primary metric only. For databricks.automl.classify that metric is f1 unless you set it, so the f1 winner shows as the best model. To get the best roc_auc trial, set primary_metric="roc_auc" before you start the run.
“Metric used to evaluate and rank model performance.Supported metrics for regression: “r2” (default), “mae”, “rmse”, “mse”Supported metrics for classification: “f1” (default)”Source: docs.databricks.com
3.Which columns become features
Feature selection in AutoML starts with columns. By default, every column of the input table except the target is a candidate feature. In the UI you untick columns in the table schema, and in the API you list them in exclude_cols, which AutoML then ignores completely. The prediction target can never be dropped. Neither can the time column, if you chose one to split the data chronologically. A split_col, which labels each row as train, validate or test, is left out of the training features automatically.
Column types limit what AutoML can use. AutoML supports numeric types, Boolean, strings (categorical or English text), timestamps and dates, numeric arrays on 10.4 LTS ML and above, and DecimalType on 11.3 LTS ML and above. Anything else is unsupported. Images, for example, cannot be used as features. AutoML also warns about dataset problems such as unsupported column types or high-cardinality columns. These warnings appear on the Warnings tab of the training page and of the experiment page, and they are often the first sign that a column will not contribute what you expected.
Checkpoint 3 of 10· Check yourself
You call databricks.automl.classify with split_col="split". Each row of the split column holds "train", "validate" or "test". You want to be sure the run does not learn from this column. What do you need to do?
A split_col is used only to decide which rows go to train, validate and test. AutoML drops it from the training features on its own, so you don't need exclude_cols. The columns that can never be removed are the prediction target and the chosen time column.
“If provided, AutoML tries to split train/validate/test sets by user-specified values, and this column is automatically excluded from training features.”Source: docs.databricks.com
4.Semantic types: what a column means, not how it is stored
A column's storage type does not always describe its content, and AutoML tries to close that gap. On Databricks Runtime 9.1 LTS ML and above, AutoML looks for columns whose meaning differs from their Spark or pandas type and treats them as the type it detects. String or integer columns that hold dates are treated as timestamps, and strings that hold numbers are treated as numeric. From 10.1 ML, numeric columns that hold categorical IDs are treated as categorical, and strings that hold English text are treated as text features.
Detection is best effort, and it can miss. Take a loyalty_tier_code stored as 1, 2 and 3 that names membership tiers. If detection keeps it as numeric, every trial learns that tier 3 is three times tier 1, which is meaningless. To fix this, on 10.1 ML and above you put a semantic type annotation on the column's metadata in the DataFrame schema, marking it as categorical. AutoML then uses your label instead of its own guess. An annotation can also turn detection off for a single column.
The other column settings do different jobs and do not fix a wrong type. exclude_cols throws the tier column away and its signal with it. imputers only controls how nulls are filled. feature_store_lookups joins extra columns from feature tables and does not retype a column already in the dataset.
Checkpoint 4 of 10· Check yourself
Semantic type detection left loyalty_tier_code (values 1, 2, 3 for membership tiers) as numeric. A colleague suggests listing it in exclude_cols to fix the problem. What does that change do to the run?
exclude_cols removes a column from the run, so the tier information is gone instead of corrected. To make AutoML treat the codes as categories, put a semantic type annotation marking the column as categorical on its metadata in the DataFrame schema.
“exclude_cols | List[str] | Optional. List of columns to ignore during AutoML calculations.”Source: docs.databricks.com
Checkpoint 5 of 10· Exam question
A data scientist launches a Databricks AutoML classification experiment on a customer churn dataset. The dataset includes a loyalty_tier_code column stored as integers (1, 2, 3), but these integers represent categorical membership tiers rather than a continuous quantity. AutoML's semantic type detection treats the column as numeric, and the resulting models underperform because they treat tier 3 as three times tier 1. What should the data scientist do before rerunning the experiment?
Correct answer: D — Add a semantic type annotation marking loyalty_tier_code as categorical so AutoML treats its values as discrete labels instead of an ordered numeric quantity.
- A. Excluding the column removes it from training entirely, discarding a field that likely has real predictive value for churn once it is typed correctly. This trades away useful signal instead of fixing the underlying type-detection problem.
- B. The
imputersparameter only controls how missing values are filled in; it has no effect on whether a column is interpreted as numeric or categorical. There is no indication of missing values in this scenario, so this does not address the issue. - C. Feature table lookups are for joining in precomputed features from Feature Engineering in Unity Catalog tables that are not already in the training dataframe. The tier column already exists in the dataset, so this mechanism is unrelated to correcting its detected type.
- D. Semantic type annotations let a user override AutoML's automatic type detection for a specific column, so marking
loyalty_tier_codeas categorical stops it from being modeled as an ordered numeric quantity. This directly fixes the root cause: the column's values were being interpreted with a false ordinal relationship.
Sources4
5.Per-column imputation, and its side effect on detection
AutoML fills missing values column by column. If you set nothing, it chooses a strategy from each column's type and content. On 10.4 LTS ML and above you can override that per column, either from the Impute with dropdown in the UI schema or with the imputers dictionary in the API. Each key is a column name. Each value is "mean", "median" or "most_frequent", or a dictionary such as {"strategy": "constant", "fill_value": 0} when you want a known fill value.
Choosing an imputer changes more than the fill value. A non-default imputation method stops AutoML from running semantic type detection on that column. A date stored as a string, or a numeric ID that would have been recognized as categorical, then keeps its raw storage type. If you need a custom imputer on a column like this, also annotate its semantic type yourself, because AutoML will no longer detect it.
Checkpoint 6 of 10· Check yourself
In a regression run, store_id holds integer store IDs and has some nulls. Detection would normally treat it as categorical. You pass imputers={"store_id": {"strategy": "constant", "fill_value": 0}}. What does the run do with store_id?
Any imputation method you choose yourself is non-default, including a constant fill. So AutoML does not run semantic type detection on store_id, and the column keeps its integer storage type. To have it treated as categorical, add a semantic type annotation as well.
“If you specify a non-default imputation method, AutoML does not perform semantic type detection.”Source: docs.databricks.com
6.Adding features from feature tables
AutoML can search over features that are not in your input table. The feature_store_lookups parameter, or Join features (optional) in the UI, adds columns from feature tables in Unity Catalog or the legacy Workspace Feature Store to the dataset before training. This is the AutoML version of FeatureLookup and create_training_set, which joins feature tables to a training set by key. The difference is that you pass the lookups as configuration and AutoML performs the join, so you write no join code.
feature_store_lookups = [
{
"table_name": "example.trip_pickup_features",
"lookup_key": ["pickup_zip", "rounded_pickup_datetime"],
},
{
"table_name": "example.trip_dropoff_features",
"lookup_key": ["dropoff_zip", "rounded_dropoff_datetime"],
}
]Each dictionary must have a table_name and a lookup_key. The lookup key names columns in your training dataset, and they must be listed in the same order as the feature table's primary keys. Time series feature tables also need a timestamp_lookup_key for the point-in-time join. If a transactions table has only IDs and timestamps but a customer-aggregates table is keyed on customer_id, one lookup with lookup_key set to customer_id adds those aggregates to every trial. AutoML does not find these tables on its own. Semantic type detection reinterprets existing columns but never brings in new tables. Classification and regression runs need Databricks Runtime 11.3 LTS ML or above for this; forecasting needs 12.2 LTS ML.
Checkpoint 7 of 10· Fill the gap
A transactions table has trip zip codes and rounded timestamps but no pickup or dropoff aggregates. Those aggregates live in two feature tables, and you want AutoML to join them in before training. Which AutoML parameter name completes this specification?
? = [
{
"table_name": "example.trip_pickup_features",
"lookup_key": ["pickup_zip", "rounded_pickup_datetime"],
},
{
"table_name": "example.trip_dropoff_features",
"lookup_key": ["dropoff_zip", "rounded_dropoff_datetime"],
}
]feature_store_lookups takes a list of dictionaries, each with a table_name and a lookup_key. AutoML uses them to join feature-table columns onto the dataset before training. exclude_cols drops columns and imputers fills nulls. Semantic type detection only reinterprets columns that are already in the dataset and never brings in new tables.
Source: docs.databricks.comCheckpoint 8 of 10· Exam question
A machine learning engineer is configuring a Databricks AutoML regression run through the Python API (automl.regress). The training dataframe holds only transaction IDs and timestamps, but the engineer wants AutoML to also train on precomputed customer aggregate features that already exist as tables in Feature Engineering in Unity Catalog, joined on customer_id. Which approach lets AutoML pull in those features directly as part of the run configuration?
Correct answer: C — Pass the feature_store_lookups parameter with the feature table names and the customer_id key so AutoML joins those tables into the training set.
- A. The
imputersparameter configures how missing values are filled in columns that already exist in the training data; it does not join in new columns from separate feature tables. This would not bring the customer aggregates into the run at all. - B. Semantic type detection only classifies the data type of columns already present in the training dataframe, such as recognizing dates or categorical codes; it does not discover or join external feature tables. Retrieving feature tables requires the explicit lookup parameter.
- C. The
feature_store_lookupsparameter is the documented way to join Feature Engineering in Unity Catalog tables into an AutoML run, by specifying the table names and the lookup key that matches a column in the training dataframe. This is exactly the mechanism needed to bring in the precomputed customer aggregates. - D. The customer aggregate columns are not yet part of the training dataframe, so there is nothing for
exclude_colsto skip; that parameter only removes existing columns from an already-assembled dataset. It cannot pull in new columns from external feature tables.
7.Seeing which features drove the best model
Once a model has been chosen, the next question is which features it actually relied on. AutoML's regression and classification notebooks include code that computes Shapley values with the SHAP package. Shapley values come from game theory and estimate how much each feature contributes to the model's predictions. They show you which of the features AutoML kept actually mattered.
No. SHAP is very memory-intensive, so it is off by default. Go to the Feature importance section, set shap_enabled = True, and re-run the notebook. On MLR 11.1 and below, SHAP plots are also skipped if the dataset contains a datetime column.
The best trial's notebook is also where you change the winning model. It is imported into your workspace automatically, and View notebook for best model opens it ready to edit. It contains the full training code, preprocessing included. To add a step AutoML did not try, such as clipping outliers, you edit this notebook and re-run it. The data exploration notebook profiles the dataset and does not retrain anything; AutoML glassbox notebooks and data exploration notebook covers how the two differ. The parameters shown on an MLflow run page are a record of what the trial did. Editing them does not change the model. imputers will not help either, because it only accepts fill strategies for missing values. Notebooks for trials other than the best one are saved as MLflow artifacts, and you import them yourself if you want to inspect what preprocessing a runner-up used.
Checkpoint 9 of 10· Match them up
After an AutoML classification run finishes, match each artifact or setting to its role when you inspect or change the winning model.
Tap a term, then the definition that fits it.
AutoML imports only the best trial notebook and the data exploration notebook into your workspace. Notebooks for the other trials stay as MLflow artifacts until you import them. To change the winner, edit its notebook and re-run it, because the parameters on a run page only record what was done. SHAP is off by default and is turned on inside a trial notebook.
“Generated notebooks for other experiment trials are saved as MLflow artifacts on DBFS instead of auto-imported into your workspace.”Source: docs.databricks.com
Checkpoint 10 of 10· Exam question
After an AutoML classification run finishes, a data scientist wants to add a custom outlier-clipping step to the preprocessing pipeline of the best-performing trial before registering the model. AutoML has already produced its results. What is the most direct way to make and apply this change?
Correct answer: A — Open the auto-generated notebook for the best trial, which contains the full editable training source code, add the clipping step, and rerun the notebook.
- A. AutoML's glassbox approach generates a full, editable source code notebook for the best trial, so a data scientist can open it directly, insert the clipping step into the existing pipeline code, and rerun it to produce an updated model. This is the direct path from result to a customized, reproducible pipeline.
- B. The data exploration notebook is a separate artifact focused on summarizing and visualizing the dataset before training; it is not wired to automatically re-trigger or modify the best trial. Editing it would have no effect on the actual training pipeline.
- C. Logged parameters in the MLflow UI are a record of what already ran; editing them does not change the training code or re-execute preprocessing, and clipping logic is not something applied at inference time by an MLflow parameter field.
- D. The
imputersparameter is scoped to missing-value handling for a specific column, not general preprocessing logic like outlier clipping, and launching an entirely new experiment discards the already-completed best trial rather than modifying it.
Sources
(5)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 1.
“Orchestrates distributed model training and hyperparameter tuning across multiple algorithms.”
↩︎ The candidate algorithms AutoML searches“For classification and regression models, the decision tree, random forests, logistic regression, and linear regression with stochastic gradient descent algorithms are based on scikit-learn.”
↩︎ The candidate algorithms AutoML searches“Shapley values are based in game theory and estimate the importance of each feature to a model's predictions.”
↩︎ Seeing which features drove the best model“Because these calculations are highly memory-intensive, the calculations are not performed by default.”
↩︎ Exam trap 4“the decision tree, random forests, logistic regression, and linear regression with stochastic gradient descent algorithms are based on scikit-learn.”
↩︎ Checkpoint“Generated notebooks for other experiment trials are saved as MLflow artifacts on DBFS instead of auto-imported into your workspace.”
↩︎ Checkpoint - 2.
“List of algorithm frameworks that AutoML should not consider as it develops models.”
↩︎ The candidate algorithms AutoML searches“Longer timeouts allow AutoML to run more trials and identify a model with better accuracy.”
↩︎ The primary metric picks the winner; the timeout ends the search“List of columns to ignore during AutoML calculations.”
↩︎ Which columns become features“If no imputation strategy is provided for a column, AutoML selects a default strategy based on column type and content.”
↩︎ Per-column imputation, and its side effect on detection“The order of the column names must match the order of the primary keys of the feature table.”
↩︎ Adding features from feature tables“Metric used to evaluate and rank model performance.”
↩︎ Key concept“Use timeout_minutes to control the duration of an AutoML run.”
↩︎ Exam trap 3“Metric used to evaluate and rank model performance.Supported metrics for regression: “r2” (default), “mae”, “rmse”, “mse”Supported metrics for classification: “f1” (default)”
↩︎ Checkpoint“If provided, AutoML tries to split train/validate/test sets by user-specified values, and this column is automatically excluded from training features.”
↩︎ Checkpoint“exclude_cols | List[str] | Optional. List of columns to ignore during AutoML calculations.”
↩︎ Checkpoint - 3.
“When a run completes, the top row shows the best model based on the primary metric.”
↩︎ The primary metric picks the winner; the timeout ends the search“it stops training and tuning models if the validation metric is no longer improving.”
↩︎ The primary metric picks the winner; the timeout ends the search“You cannot remove the column selected as the prediction target or the time column to split the data.”
↩︎ Which columns become features“Select View notebook for best model to review and edit the notebook that created the best model.”
↩︎ Seeing which features drove the best model - 4.
“Only the feature types listed below are supported. For example, images are not supported.”
↩︎ Which columns become features“These detections are best effort and might sometimes miss the existence of semantic types.”
↩︎ Semantic types: what a column means, not how it is stored“Numeric columns that contain categorical IDs are treated as a categorical feature.”
↩︎ Semantic types: what a column means, not how it is stored“manually set the semantic type of a column or tell AutoML not to apply semantic type detection to a column using annotations”
↩︎ Semantic types: what a column means, not how it is stored“If you specify a non-default imputation method, AutoML does not perform semantic type detection.”
↩︎ Per-column imputation, and its side effect on detection“you can manually control the assigned semantic type by placing a semantic type annotation on a column”
↩︎ Exam trap 1“If you specify a non-default imputation method, AutoML does not perform semantic type detection.”
↩︎ Exam trap 2“AutoML does not perform semantic type detection for columns that have custom imputation methods specified.”
↩︎ Prediction - 5.
“AutoML can augment the original input dataset with features from feature tables in Unity Catalog or in the legacy Workspace Feature Store.”
↩︎ Adding features from feature tables