CertSafari
    Databricks Certified Machine Learning Associate· Lessons

    Domain 1 · Lesson 4/48

    AutoML advantages: fast baselines, automated data prep and glass-box notebooks

    Identify the advantages AutoML brings to the model development process

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

    What you will be able to do

    • Explain how AutoML produces baseline models from a dataset and a target column, with no hand-built pipeline
    • Identify the data preparation AutoML does on its own: imputation, semantic type detection, warnings and balancing
    • Locate, review and modify the generated trial notebooks and the data exploration notebook
    • Recognise that every AutoML trial is an ordinary MLflow run that can be inspected, registered and deployed

    Key concept

    Glass-box AutoML — AutoML searches algorithms and hyperparameters for you, but it never hides how it got there. Every trial comes with a notebook of its source code, and a separate notebook profiles the input data, so you can read, rerun and change the code yourself.

    1.Baseline models from a dataset and a target column

    On a new project the first question is whether the data can solve the business problem at all, and writing a tuned pipeline for every candidate algorithm is a slow way to find out. Databricks AutoML answers it faster. You give it a dataset and say what kind of problem it is. AutoML then cleans and prepares the data, runs distributed training and hyperparameter tuning across several algorithms, picks the best model, and presents the results. Within the Databricks MLOps workflow, this is the exploratory step AutoML speeds up, because it generates baseline models for the dataset.

    There are two ways in, and neither needs a pipeline written first. A low-code UI offers cards for classification, regression and forecasting. On the Configure AutoML experiment page you choose a cluster running Databricks Runtime ML, browse to a table, and select the Prediction target column. The Python API does the same job from a notebook: each call trains a set of models and generates a trial notebook for each one. In both, the candidate algorithms come from open-source libraries (scikit-learn, XGBoost, LightGBM, Prophet and ARIMA), and you don't write a training loop for any of them.

    A baseline is a reference point, not a finished model. AutoML scores every run with a primary metric and stops when its time limit is reached. The AutoML model selection: candidate algorithms, primary metric, timeout lesson covers those settings. For speed, the setting that matters is the timeout: a short one early in a project returns a ranked set of working models within minutes. That tells you what a sensible score looks like before you spend days on a hand-tuned pipeline. You can also stop a running experiment at any time from the training page.

    Checkpoint 1 of 8· Check yourself

    A data scientist has a new table and wants to find out quickly whether it can predict customer churn at all, before building a hand-tuned pipeline. How does Databricks AutoML give them a baseline?

    Checkpoint 2 of 8· Exam question

    A team lead wants a data scientist to quickly produce a baseline classification model for a new dataset before investing time in a hand-tuned pipeline. Which advantage of Databricks AutoML best supports this goal?

    Sources1234

    2.Data preparation AutoML does for you

    Missing values don't stop an AutoML run. By default, AutoML picks an imputation method for each column based on its type and content. In Databricks Runtime 10.4 LTS ML and above, you can override that per column: use the Impute with dropdown in the UI's schema view, or the imputers parameter in the API. A table with gaps in several numeric columns can therefore go straight into an experiment, with no cleaning pass first.

    Column types are the second job AutoML takes off your hands. The Spark schema often doesn't describe what a column means. A ZIP code stored as an integer is an ID, not a quantity, and averaging ZIP codes means nothing. AutoML tries to detect each column's semantic type and then treats the column as that type, not as its storage type. Detection is best effort and can miss a type.

    Semantic type adjustments AutoML makes automatically
    What the column containsHow AutoML treats itRuntime
    String or integer values that represent dates or timestampsTimestamp typeDatabricks Runtime 9.1 LTS ML and above
    String values that represent numbersNumeric typeDatabricks Runtime 9.1 LTS ML and above
    Numeric values that are categorical IDsCategorical featureDatabricks Runtime 10.1 ML and above
    Strings of English textText featureDatabricks Runtime 10.1 ML and above

    When detection gets a column wrong, annotate the column yourself instead of rewriting the data. The annotation goes in the column's metadata, and the allowed values are categorical, numeric, datetime and text. The special keyword native turns detection off for that column. There is one interaction to remember: if you choose a non-default imputation method for a column, AutoML skips semantic type detection for it.

    Manually annotating a column's semantic type before passing the DataFrame to AutoMLpython
    metadata_dict = df.schema["<column-name>"].metadata
    metadata_dict["spark.contentAnnotation.semanticType"] = "<semantic-type>"
    df = df.withMetadata("<column-name>", metadata_dict)

    Several other routine chores are automated as well:

    • AutoML splits the data into train, validation and test sets. Unless you choose a chronological or manual split, the random split is 60/20/20, and it is stratified for classification.
    • AutoML estimates how much memory it needs to load and train on the dataset, and samples the data if necessary.
    • In Databricks Runtime 11.3 LTS ML and above, AutoML reduces class imbalance in classification by downsampling the majority class and adding class weights. It does this to the training set only, so validation and test scores still reflect the true class distribution.
    • In Databricks Runtime 10.1 ML and above, the Warnings tab lists possible dataset problems, such as unsupported column types or high-cardinality columns.

    Checkpoint 3 of 8· Check yourself

    In a regression experiment, a ZIP code column is stored as integers and has some nulls. The data scientist picks a non-default method for it in the Impute with dropdown. What does this mean for how AutoML treats the ZIP code column?

    Checkpoint 4 of 8· Check yourself

    On Databricks Runtime 11.3 LTS ML, AutoML runs a classification experiment on a fraud table where 95% of rows are legitimate and 5% are fraud. What happens to the class distribution in each split?

    Checkpoint 5 of 8· Exam question

    A dataset for a regression problem has several columns with missing numeric values and a column of ZIP codes stored as integers that should be treated as categorical. Which Databricks AutoML capability reduces the manual data-cleaning work needed before training?

    Sources45

    3.Glass-box trial notebooks and the data exploration notebook

    Most automated tools trade transparency for convenience. AutoML doesn't. Every trial is backed by a notebook containing the source code that produced it: the preprocessing, the model and its hyperparameters, and the evaluation. You can review that code, run it again to reproduce the result, and change it. Say a churn baseline looks promising but you'd engineer one feature differently. Open the trial's notebook, edit the feature step, and rerun it. You start from working code, not from nothing.

    A second generated notebook looks at the data, not the models. The data exploration notebook calculates summary statistics on your dataset so you can review its profile next to the trial results. You can open it from the training page while the experiment is still running, and after it finishes through View data exploration notebook.

    Every trial gets a notebook, but not every notebook is placed in your workspace. Which ones are auto-imported depends on the problem type. A trial notebook that wasn't imported is still kept. Open that trial's MLflow run and you'll find the IPython notebook in the run page's Artifacts section. You can import it through the AutoML experiment UI or with databricks.automl.import_notebook, or download it, if your workspace administrators allow artifact downloads. Because only the best trial is imported, its TrialInfo is the only one with notebook_path and notebook_url set.

    Where generated notebooks end up, by problem type
    NotebookClassification and regressionForecasting
    Data exploration notebookAuto-imported to the workspaceAuto-imported to the workspace
    Best trial notebookAuto-imported to the workspaceAuto-imported to the workspace
    Every other trial notebookSaved as an MLflow artifact; import with the experiment UI or databricks.automl.import_notebookAuto-imported to the workspace

    Nothing is deleted when the experiment ends. Each experiment's results, including the data exploration and training notebooks, are saved to a databricks_automl folder in the home folder of the user who ran it. To return to an experiment later, find it in the table on the Experiments page.

    The notebooks can explain the model as well as reproduce it. Regression and classification notebooks include code that computes Shapley values with the SHAP package, which estimate how much each feature contributes to the model's predictions. That calculation uses a lot of memory, so it is off by default. To turn it on, go to the notebook's Feature importance section, set shap_enabled = True, and rerun the notebook. On MLR 11.1 and below, SHAP plots are not generated if the dataset contains a datetime column.

    Checkpoint 6 of 8· Match them up

    After a classification or regression AutoML run, a data scientist wants each item below. Match each item to how they get it.

    Tap a term, then the definition that fits it.

    Checkpoint 7 of 8· Exam question

    A data scientist at a retail company is building a baseline churn prediction model and wants to see the exact preprocessing and training code Databricks used, then adjust the feature engineering steps before retraining. Which capability of Databricks AutoML directly supports this?

    Sources124

    4.Every trial is an ordinary MLflow run

    AutoML doesn't keep its results in a separate format. It records each trial as an MLflow run in the experiment. Clicking the Models or Start Time column opens the run page, which shows the trial's parameters, metrics and tags, plus the artifacts it created, including the model. The page also gives code snippets for making predictions with that model. In the runs table you can search, filter and sort trials like any other runs.

    The best model is easy to find: when a run completes, it is the top row, ranked by the primary metric. Because the best trial is an ordinary MLflow run, you can register it straight from the experiment. Click the link in the Models column and register it to Unity Catalog, which Databricks recommends over the workspace Model Registry for the latest features. Registering from code works the same as for any other run (see Registering a model in Unity Catalog (set_registry_uri + register_model)). Once registered, the model can be deployed to a custom model serving endpoint.

    Deployment is a separate step that you take yourself. AutoML doesn't put the winning model behind an endpoint or replace its code with a sealed artifact. The trial's notebook, metrics and model all stay in the experiment, so the person who registers the model can check how it was built first.

    Checkpoint 8 of 8· Put it in order

    Your churn classification experiment has just completed, and you want its winning model served behind an endpoint. Put the steps you take in the AutoML UI in order.

    1. 1.Find the best model in the top row of the runs table, which is ranked by the primary metric
    2. 2.Register the model to Unity Catalog
    3. 3.Select the link in the Models column for that run
    4. 4.Deploy the registered model to a custom model serving endpoint

    Sources4

    Sources

    (5)

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

    1. 1.
      “Provide your dataset and specify the type of machine learning problem, then AutoML does the following:”
      ↩︎ Baseline models from a dataset and a target column
      “Get started with AutoML experiments through a low-code UI for regression; classification; or forecasting, or the Python API.”
      ↩︎ Baseline models from a dataset and a target column
      “Orchestrates distributed model training and hyperparameter tuning across multiple algorithms.”
      ↩︎ Baseline models from a dataset and a target column
      “AutoML also generates source code notebooks for each trial, allowing you to review, reproduce, and modify the code as needed.”
      ↩︎ Glass-box trial notebooks and the data exploration notebook
      “For forecasting experiments, AutoML-generated notebooks are automatically imported to your workspace for all trials of your experiment.”
      ↩︎ Glass-box trial notebooks and the data exploration notebook
      “For all trials besides the best trial, the notebook_path and notebook_url in the TrialInfo Python API are not set.”
      ↩︎ Glass-box trial notebooks and the data exploration notebook
      “Shapley values are based in game theory and estimate the importance of each feature to a model's predictions.”
      ↩︎ Glass-box trial notebooks and the data exploration notebook
      “For MLR 11.1 and below, SHAP plots are not generated if the dataset contains a datetime column.”
      ↩︎ Glass-box trial notebooks and the data exploration notebook
      “AutoML also generates source code notebooks for each trial, allowing you to review, reproduce, and modify the code as needed.”
      ↩︎ Key concept
      “you can manually import them into your workspace with the AutoML experiment UI or the databricks.automl.import_notebook Python API.”
      ↩︎ Exam trap 1
      “Because these calculations are highly memory-intensive, the calculations are not performed by default.”
      ↩︎ Exam trap 2
      “Generated notebooks for other experiment trials are saved as MLflow artifacts on DBFS instead of auto-imported into your workspace.”
      ↩︎ Prediction
      “If you need to use these notebooks, you can manually import them into your workspace with the AutoML experiment UI or the databricks.automl.import_notebook Python API.”
      ↩︎ Checkpoint
    2. 2.
      “AutoML accelerates this process by generating baseline models for a dataset.”
      ↩︎ Baseline models from a dataset and a target column
      “AutoML also calculates summary statistics on your dataset and saves this information in a notebook that you can review.”
      ↩︎ Glass-box trial notebooks and the data exploration notebook
    3. 3.
      “Each method call trains a set of models and generates a trial notebook for each model.”
      ↩︎ Baseline models from a dataset and a target column
    4. 4.
      “Stop the experiment at any time.”
      ↩︎ Baseline models from a dataset and a target column
      “By default, AutoML selects an imputation method based on the column type and content.”
      ↩︎ Data preparation AutoML does for you
      “AutoML displays warnings for potential issues with the dataset, such as unsupported column types or high cardinality columns.”
      ↩︎ Data preparation AutoML does for you
      “are stored in a databricks_automl folder in the home folder of the user who ran the experiment.”
      ↩︎ Glass-box trial notebooks and the data exploration notebook
      “showing information about the trial run (such as parameters, metrics, and tags) and artifacts created by the run, including the model.”
      ↩︎ Every trial is an ordinary MLflow run
      “This page also includes code snippets that you can use to make predictions with the model.”
      ↩︎ Every trial is an ordinary MLflow run
      “When a run completes, the top row shows the best model based on the primary metric.”
      ↩︎ Every trial is an ordinary MLflow run
      “After registration, you can deploy the model to a custom model serving endpoint.”
      ↩︎ Every trial is an ordinary MLflow run
    5. 5.
      “Numeric columns that contain categorical IDs are treated as a categorical feature.”
      ↩︎ Data preparation AutoML does for you
      “These detections are best effort and might sometimes miss the existence of semantic types.”
      ↩︎ Data preparation AutoML does for you
      “To disable semantic type detection on a column, use the special keyword annotation native.”
      ↩︎ Data preparation AutoML does for you
      “the dataset is randomly split into 60% train split, 20% validate split, and 20% test split.”
      ↩︎ Data preparation AutoML does for you
      “AutoML automatically estimates the memory required to load and train your dataset and samples the dataset if necessary.”
      ↩︎ Data preparation AutoML does for you
      “If you specify a non-default imputation method, AutoML does not perform semantic type detection.”
      ↩︎ Exam trap 3
      “AutoML only balances the training dataset and does not balance the test and validation datasets.”
      ↩︎ Exam trap 4
      “AutoML does not perform semantic type detection for columns that have custom imputation methods specified.”
      ↩︎ Checkpoint
      “AutoML only balances the training dataset and does not balance the test and validation datasets.”
      ↩︎ Checkpoint

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