Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing the issue regards Google Colab Visualization #102

Open
wants to merge 2 commits into
base: fall22
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions week07_interpretability/practice.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@
"shap_values = explainer.shap_values(X)\n",
"\n",
"# visualize explanation of the first example\n",
"shap.initjs() #For re-run the Javascript initialization on Google Colab\n",
"shap.force_plot(explainer.expected_value, shap_values[0, :], X.iloc[0, :])"
]
},
Expand All @@ -355,6 +356,7 @@
"source": [
"# Explain training data: each *column* is a rotated plot from above, stacked for all training samples\n",
"# (this plot is interactive, hover mouse to see feature names)\n",
"shap.initjs() #For re-run the Javascript initialization on Google Colab\n",
"shap.force_plot(explainer.expected_value, shap_values, X)"
]
},
Expand Down