mirror of
https://github.com/Azure/MachineLearningNotebooks.git
synced 2025-12-21 10:05:09 -05:00
update samples from Release-153 as a part of 1.0.69 SDK release
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
"\n",
|
||||
"We will showcase three tabular data explainers: TabularExplainer (SHAP), MimicExplainer (global surrogate), and PFIExplainer.\n",
|
||||
"\n",
|
||||
"|  |\n",
|
||||
"|  |\n",
|
||||
"|:--:|\n",
|
||||
"| *Interpretability Toolkit Architecture* |\n",
|
||||
"\n",
|
||||
@@ -86,22 +86,22 @@
|
||||
"\n",
|
||||
"# Explainers:\n",
|
||||
"# 1. SHAP Tabular Explainer\n",
|
||||
"from azureml.explain.model.tabular_explainer import TabularExplainer\n",
|
||||
"from interpret.ext.blackbox import TabularExplainer\n",
|
||||
"\n",
|
||||
"# OR\n",
|
||||
"\n",
|
||||
"# 2. Mimic Explainer\n",
|
||||
"from azureml.explain.model.mimic.mimic_explainer import MimicExplainer\n",
|
||||
"from interpret.ext.blackbox import MimicExplainer\n",
|
||||
"# You can use one of the following four interpretable models as a global surrogate to the black box model\n",
|
||||
"from azureml.explain.model.mimic.models.lightgbm_model import LGBMExplainableModel\n",
|
||||
"from azureml.explain.model.mimic.models.linear_model import LinearExplainableModel\n",
|
||||
"from azureml.explain.model.mimic.models.linear_model import SGDExplainableModel\n",
|
||||
"from azureml.explain.model.mimic.models.tree_model import DecisionTreeExplainableModel\n",
|
||||
"from interpret.ext.glassbox import LGBMExplainableModel\n",
|
||||
"from interpret.ext.glassbox import LinearExplainableModel\n",
|
||||
"from interpret.ext.glassbox import SGDExplainableModel\n",
|
||||
"from interpret.ext.glassbox import DecisionTreeExplainableModel\n",
|
||||
"\n",
|
||||
"# OR\n",
|
||||
"\n",
|
||||
"# 3. PFI Explainer\n",
|
||||
"from azureml.explain.model.permutation.permutation_importance import PFIExplainer "
|
||||
"from interpret.ext.blackbox import PFIExplainer "
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -322,7 +322,7 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from azureml.contrib.explain.model.visualize import ExplanationDashboard"
|
||||
"from azureml.contrib.interpret.visualize import ExplanationDashboard"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user