DP-100 practice question 24 of 35
You train a classification model by using a logistic regression algorithm. You must be able to explain the model’s predictions by calculating the…
Full set: 506 questionsDomain Implement responsible machine learning
The MimicExplainer is designed to explain complex, opaque "blackbox" models. It functions by training a simpler, intrinsically interpretable "surrogate" model (e.g., a decision tree) that learns to approximate the predictions of the original blackbox model. The explanations are then generated from this surrogate model. A logistic regression model is a "glassbox" model, meaning it is already intrinsically interpretable. Using a MimicExplainer is an incorrect and indirect approach, as it would provide explanations for the surrogate model, not the original logistic regression model itself. The appropriate tool for a linear model is the ShapLinearExplainer, which directly uses the model's structure to calculate feature importance accurately and efficiently.
A. Yes: This is incorrect. While a MimicExplainer can technically produce feature importance values, it is designed for blackbox models and would provide an indirect, approximated explanation for a simple glassbox model like logistic regression, making it an inappropriate solution.
1. Microsoft Azure Official Documentation: Model interpretability in Azure Machine Learning. Under the section "Interpretability with Azure Machine Learning
" the documentation provides a table of supported explainers.
MimicExplainer: "Explains black box models by training a global surrogate model that mimics the black box model." This confirms its purpose is for blackbox models.
ShapLinearExplainer: "Uses the SHAP framework to explain linear models." This is explicitly recommended for models like logistic regression. The text also states
"For linear models
we recommend ShapLinearExplainer." This directly contradicts the proposed solution.
2. Microsoft Azure Official Documentation: How to generate model explanations (SDK v1). In the "Create explainer object" section
the guidance is clear: "Use the ShapLinearExplainer to explain linear models." This reinforces that MimicExplainer is not the correct choice for the given scenario.
Keep practicing
Take the free DP-100 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other DP-100 practice questions
- Question 2Note: This question is part of a series of questions that present the same scenario. Each…
- Question 5You have an Azure Machine Learning workspace. You plan to run a job to tram a model as an…
- Question 6You create a script that trains a convolutional neural network model over multiple epochs…
- Question 8You train and register an Azure Machine Learning model You plan to deploy the model to an…
- Question 11Note: This question is part of a series of questions that present the same scenario. Each…
- Question 14You use Azure Machine Learning to train a model based on a dataset named dataset1. You de…
