Databricks Machine Learning Associate · Section 1 · 38% of the exam
Identify how AutoML facilitates model/feature selection.
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 on a Databricks Runtime 17.3 LTS ML cluster needs the category_encoders package, which the ML runtime does not include, in one notebook. The rest of the pre-installed ML stack must stay at its tested versions. What should they do?
- ARun
%pip install category_encodersin the notebook, thendbutils.library.restartPython()before importing it - BSwitch the cluster to the standard Databricks Runtime, which downloads any missing package the first time it is imported
- CWrite a cluster init script that reinstalls scikit-learn, XGBoost and the rest of the ML stack together with the new package
- DAdd the package to the
requirements.txtfile of a logged model, which installs it on the cluster at the next restart
Show the answer
A. Databricks Runtime ML pins a tested set of ML libraries. When a notebook needs one more package, install it as a notebook-scoped library with %pip and restart Python with dbutils.library.restartPython(). The package is added for that notebook only, and the pre-installed stack stays as Databricks tested it.
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 the advantages of using ML runtimes
- 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