Databricks Machine Learning Associate · Section 1 · 38% of the exam
Identify the advantages of using ML runtimes
One of the objectives of the Databricks Certified Machine Learning Associate exam, in the section “Databricks Machine Learning”. Here is what it covers, the points to remember and a question to try.
What it covers
Databricks Runtime for Machine Learning gives you a tested, pre-installed ML stack on classic compute, and AutoML uses it to prepare data, train and tune many models, and hand you notebooks for the best one. This lesson covers what each provides, where serverless fits, and the AutoML details the exam asks about.
Points to remember
- Databricks Runtime ML = classic compute with a pre-installed, tested ML stack (scikit-learn, XGBoost, LightGBM, PyTorch, MLflow, Optuna, Ray, Feature Engineering client); tick Machine learning in the compute form.
- Ticking Machine learning sets Dedicated access mode, which ML runtimes need for Unity Catalog data; AutoML does not run in Standard access mode.
- GPU ML runtimes include CUDA, cuDNN and NCCL; AI Runtime is the serverless GPU option (Public Preview).
- Databricks Autologging is on by default on ML runtimes (10.4 LTS ML+) but not on serverless: call
mlflow.autolog(). - AutoML is built into ML runtimes up to 17.3 LTS ML; from 18.0 ML it is no longer a built-in library.
Try a question
A data scientist starts an AutoML regression experiment with automl.regress(dataset=df, target_col="price") and does not set primary_metric. Which metric does AutoML use to rank the trials?
- A
rmse - B
r2 - C
f1 - D
smape
Show the answer
B. AutoML ranks trials by the primary metric on the validation set. The defaults are r2 for regression, f1 for classification and smape for forecasting. For regression you can set primary_metric to r2, mae, rmse or mse.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson ML runtimes and AutoML teaches this objective (about 35 minutes), and 17 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.
More in this section
- Identify the best practices of an MLOps strategy
- Identify how AutoML facilitates model/feature selection.
- Identify the advantages AutoML brings to the model development process
- Identify the benefits of creating feature store tables at the account level in Unity Catalog in Databricks vs at the workspace level
- Create a feature store table in Unity Catalog
- Write data to a feature store table
- Train a model with features from a feature store table.
- Score a model using features from a feature store table.
- Describe the differences between online and offline feature tables
- Identify the best run using the MLflow Client API.
- Manually log metrics, artifacts, and models in an MLflow Run.
- Identify information available in the MLflow UI