Skip to content

Commit 61cb7c2

Browse files
authored
Merge pull request #105045 from cartacioS/patch-28
Update explainability lib
2 parents fc4e776 + 817271a commit 61cb7c2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

articles/machine-learning/how-to-machine-learning-interpretability-automl.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,13 @@ To generate an explanation for AutoML models, use the `MimicWrapper` class. You
8585
The MimicWrapper also takes the `automl_run` object where the raw and engineered explanations will be uploaded.
8686

8787
```python
88-
from azureml.interpret.mimic.models.lightgbm_model import LGBMExplainableModel
89-
from azureml.interpret.mimic_wrapper import MimicWrapper
88+
from azureml.explain.model.mimic.models.lightgbm_model import LGBMExplainableModel
89+
from azureml.explain.model.mimic_wrapper import MimicWrapper
9090

91-
explainer = MimicWrapper(ws, automl_explainer_setup_obj.automl_estimator, LGBMExplainableModel,
91+
# Initialize the Mimic Explainer
92+
explainer = MimicWrapper(ws, automl_explainer_setup_obj.automl_estimator, LGBMExplainableModel,
9293
init_dataset=automl_explainer_setup_obj.X_transform, run=automl_run,
93-
features=automl_explainer_setup_obj.engineered_feature_names,
94+
features=automl_explainer_setup_obj.engineered_feature_names,
9495
feature_maps=[automl_explainer_setup_obj.feature_map],
9596
classes=automl_explainer_setup_obj.classes)
9697
```

0 commit comments

Comments
 (0)