Databricks Certified Machine Learning Professional — Question 20

A data scientist has written a function to track the runs of their random forest model. The data scientist is changing the number of trees in the forest across each run.
Which of the following MLflow operations is designed to log single values like the number of trees in a random forest?

Answer options

Correct answer: D

Explanation

The correct answer is D, as mlflow.log_param is specifically used to log parameters, which include single values like the number of trees in a random forest. Options A and B are meant for logging artifacts and models, respectively, while C is for logging metrics, and option E is incorrect since there is a method to store such values.