Skip to content

Commit

Permalink
fix ExplanationDashboard interpretability failure
Browse files Browse the repository at this point in the history
  • Loading branch information
imatiach-msft committed Jun 5, 2023
1 parent 9911bfb commit 0599a0a
Showing 1 changed file with 21 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,27 @@
"\n",
"In this example, similar to the \"Interpretability - Tabular SHAP explainer\" notebook, we use Kernel SHAP to explain a tabular classification model built from the Adults Census dataset and then visualize the explanation in the ExplanationDashboard from https://github.com/microsoft/responsible-ai-widgets.\n",
"\n",
"First we import the packages and define some UDFs we will need later."
"First we install required dependencies and import the packages and define some UDFs we will need later."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"When running Synapse Analytics, please follow instructions here [Package management - Azure Synapse Analytics | Microsoft Docs](https://docs.microsoft.com/en-us/azure/synapse-analytics/spark/apache-spark-azure-portal-add-libraries) to install [\"raiwidgets\"](https://pypi.org/project/raiwidgets/) and [\"interpret-community\"](https://pypi.org/project/interpret-community/) packages."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"!pip install --upgrade raiwidgets\n",
"!pip install itsdangerous==2.0.1\n",
"!pip install --upgrade interpret-community"
]
},
{
Expand Down Expand Up @@ -312,36 +332,6 @@
" converted_importance_values.append(converted_list)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"When running Synapse Analytics, please follow instructions here [Package management - Azure Synapse Analytics | Microsoft Docs](https://docs.microsoft.com/en-us/azure/synapse-analytics/spark/apache-spark-azure-portal-add-libraries) to install [\"raiwidgets\"](https://pypi.org/project/raiwidgets/) and [\"interpret-community\"](https://pypi.org/project/interpret-community/) packages."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"!pip install --upgrade raiwidgets\n",
"!pip install itsdangerous==2.0.1"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"!pip install --upgrade interpret-community"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit 0599a0a

Please sign in to comment.