CertSafari
    Databricks Certified Machine Learning Associate· Lessons

    Domain 1 · Lesson 3/48

    How Databricks AutoML selects models and features

    Identify how AutoML facilitates model/feature selection.

    17 min read
    2.11% of exam
    5 sources
    Published 22 Oct 2026
    Docs as of 30 Sep 2026

    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.

    Algorithms AutoML trains for each problem type
    Problem typeCandidate algorithms
    ClassificationDecision trees, random forests, logistic regression, XGBoost, LightGBM
    RegressionDecision 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?

    Sources12

    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.

    Primary metric options and defaults
    Problem typeDefault primary_metricOther supported values
    Classification (databricks.automl.classify)f1log_loss, precision, accuracy, roc_auc
    Regression (databricks.automl.regress)r2mae, 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?

    Sources32

    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?

    Sources324

    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?

    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?

    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?

    Sources24

    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.

    Two feature-table lookups passed to an AutoML run, each keyed on columns from the training datasetpython
    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"],
      }
    ]

    Checkpoint 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?

    Sources52

    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.

    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.

    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?

    Sources13

    Sources

    (5)

    Every claim above is drawn from one of these pages, quoted as it was written on the date shown.

    1. 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. 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. 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. 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. 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

    Ready to test yourself?

    Practise the 7 questions on this subdomain.

    Spotted a mistake, or was something unclear? Tell us.