You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set the optional `model_explainability` parameter in the `AutoMLConfig` constructor. Additionally, a validation dataframe object must be passed as a parameter `X_valid` to use the model explainability feature.
Now submit the configuration to automatically select the algorithm, hyper parameters, and train the model.
@@ -234,59 +216,13 @@ remote_run.get_portal_url()
234
216
235
217
The same information is available in your workspace. To learn more about these results, see [Understand automated machine learning results](how-to-understand-automated-ml.md).
236
218
237
-
### View logs
238
-
239
-
Find logs on the DSVM under `/tmp/azureml_run/{iterationid}/azureml-logs`.
240
-
241
-
## <aname="explain"></a> Best model explanation
242
-
243
-
Retrieving model explanation data allows you to see detailed information about the models to increase transparency into what's running on the back-end. In this example, you run model explanations only for the best fit model. If you run for all models in the pipeline, it will result in significant run time. Model explanation information includes:
244
-
245
-
* shap_values: The explanation information generated by shap lib.
246
-
* expected_values: The expected value of the model applied to set of X_train data.
247
-
* overall_summary: The model level feature importance values sorted in descending order.
248
-
* overall_imp: The feature names sorted in the same order as in overall_summary.
249
-
* per_class_summary: The class level feature importance values sorted in descending order. Only available for the classification case.
250
-
* per_class_imp: The feature names sorted in the same order as in per_class_summary. Only available for the classification case.
251
-
252
-
Use the following code to select the best pipeline from your iterations. The `get_output` method returns the best run and the fitted model for the last fit invocation.
253
-
254
-
```python
255
-
best_run, fitted_model = remote_run.get_output()
256
-
```
257
-
258
-
Import the `retrieve_model_explanation` function and run on the best model.
259
-
260
-
```python
261
-
from azureml.train.automl.automlexplainer import retrieve_model_explanation
The [how-to-use-azureml/automated-machine-learning/remote-amlcompute/auto-ml-remote-amlcompute.ipynb](https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/automated-machine-learning/remote-amlcompute/auto-ml-remote-amlcompute.ipynb) notebook demonstrates concepts in this article.
221
+
The following [notebook](https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/automated-machine-learning/regression/auto-ml-regression.ipynb) demonstrates concepts in this article.
0 commit comments