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?
AutoML needs only a dataset, the problem type and a target column. It cleans the data and handles training and hyperparameter tuning across several algorithms, so nobody has to write a pipeline first, hand-code models from a ranking, or pick one algorithm in advance.
“Orchestrates distributed model training and hyperparameter tuning across multiple algorithms.”Source: docs.databricks.com
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?
Correct answer: A — AutoML's UI and Python API accept the dataset and target column, then automatically train and evaluate several candidate models without a custom pipeline.
- A. Pointing AutoML at a dataset and target column through the low-code UI or the Python API is exactly what lets a team produce a working baseline model in minutes instead of hand-writing a training pipeline first.
- B. AutoML does not require the scientist to pre-build scikit-learn Pipeline objects; it constructs and runs the preprocessing and training pipeline itself as part of each trial.
- C. AutoML does not stop at a ranked report — it actually trains, evaluates, and produces runnable model code for each trial, not just algorithm recommendations to implement later.
- D. AutoML tries multiple algorithm families in parallel trials rather than being locked to one administrator-chosen algorithm, which is what makes automatic baseline comparison possible.
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.
| What the column contains | How AutoML treats it | Runtime |
|---|---|---|
| String or integer values that represent dates or timestamps | Timestamp type | Databricks Runtime 9.1 LTS ML and above |
| String values that represent numbers | Numeric type | Databricks Runtime 9.1 LTS ML and above |
| Numeric values that are categorical IDs | Categorical feature | Databricks Runtime 10.1 ML and above |
| Strings of English text | Text feature | Databricks 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.
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?
When a column has a non-default imputation method, AutoML does not run semantic type detection on it. If a column like ZIP code also needs to be treated as categorical, you add the semantic type annotation yourself. You don't need to rewrite or cast the data.
“AutoML does not perform semantic type detection for columns that have custom imputation methods specified.”Source: docs.databricks.com
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?
AutoML reduces imbalance by downsampling the majority class and adding class weights, and it does this to the training set only. Validation and test keep the real class distribution, so the reported metrics reflect real-world data.
“AutoML only balances the training dataset and does not balance the test and validation datasets.”Source: docs.databricks.com
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?
Correct answer: A — AutoML automatically imputes missing values based on column content and detects semantic types so integer columns like ZIP codes are treated as categorical.
- A. AutoML picks an imputation method based on each column's type and content, and applies semantic type detection so an integer column like ZIP codes can be handled as categorical rather than continuous, cutting the manual prep work.
- B. AutoML does not block training on missing values — automatic imputation is one of its core preprocessing steps, so nulls do not need to be manually stripped out beforehand.
- C. AutoML performs semantic type detection precisely to catch cases like a ZIP code stored as an integer, and a user can also specify custom handling, so it is not locked to treating every numeric column as continuous.
- D. AutoML does not hand off preprocessing as a blank template; it fills in the imputation and encoding logic itself in the generated trial notebooks.
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.
| Notebook | Classification and regression | Forecasting |
|---|---|---|
| Data exploration notebook | Auto-imported to the workspace | Auto-imported to the workspace |
| Best trial notebook | Auto-imported to the workspace | Auto-imported to the workspace |
| Every other trial notebook | Saved as an MLflow artifact; import with the experiment UI or databricks.automl.import_notebook | Auto-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.
Probably not. Shapley values are opt-in because the calculation is memory-intensive. Set shap_enabled = True in the Feature importance section and rerun the notebook. On MLR 11.1 and below, a datetime column in the dataset also prevents the plots.
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.
For classification and regression, only the best trial's notebook and the data exploration notebook are auto-imported. Other trial notebooks are kept as MLflow artifacts that you import yourself. SHAP code is in the notebook but switched off by default because it uses a lot of memory, so you turn it on and rerun the notebook.
“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.”Source: docs.databricks.com
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?
Correct answer: A — Each AutoML trial writes an editable glassbox notebook containing the exact preprocessing and model training code, ready to review and modify.
- A. AutoML's glassbox approach generates a full source-code notebook for every trial, including the preprocessing and modeling steps, so a practitioner can open it, understand exactly what was done, and edit the feature engineering before rerunning.
- B. AutoML does not seal off training logic behind an endpoint; the whole point of the glassbox design is that the generated notebooks remain visible and reusable rather than hidden.
- C. AutoML persists far more than hyperparameter values in the Model Registry context — the trial notebooks themselves, containing the full preprocessing and training source code, are kept and importable.
- D. AutoML does not auto-deploy models or delete the notebooks that produced them; the best trial's notebook is imported into the workspace for the user to inspect and rerun.
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.Find the best model in the top row of the runs table, which is ranked by the primary metric
- 2.Register the model to Unity Catalog
- 3.Select the link in the Models column for that run
- 4.Deploy the registered model to a custom model serving endpoint
AutoML records each trial as an ordinary MLflow run and puts the best one at the top. It doesn't deploy anything for you. You register the model yourself from the Models column link, and only a registered model can be deployed to a serving endpoint.
“After registration, you can deploy the model to a custom model serving endpoint.”Source: docs.databricks.com
Sources4
Sources
(5)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 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.
“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.
“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.
“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.
“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