Databricks Certified Machine Learning Professional — Question 39
Which of the following MLflow operations can be used to automatically calculate and log a Shapley feature importance plot?
Answer options
- A. mlflow.shap.log_explanation
- B. None of these operations can accomplish the task.
- C. mlflow.shap
- D. mlflow.log_figure
- E. client.log_artifact
Correct answer: A
Explanation
The correct answer is A, as mlflow.shap.log_explanation is specifically designed to calculate and log Shapley feature importance plots. The other options do not have this functionality: B indicates that no operations can perform the task, which is incorrect; C and D do not specifically log Shapley explanations; and E is related to logging artifacts rather than feature importance plots.