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
Javascript Not Initialized error occurs whenever I tries to use the SHAP force plot.
It works fine with other visualization though.
I even used the example code from SHAP github page.
Minimal Reproducible Example
importxgboostimportshap# train an XGBoost modelX, y=shap.datasets.california()
model=xgboost.XGBRegressor().fit(X, y)
# explain the model's predictions using SHAP# (same syntax works for LightGBM, CatBoost, scikit-learn, transformers, Spark, etc.)explainer=shap.Explainer(model)
shap_values=explainer(X)
# visualize the first prediction's explanationshap.initjs()
shap.plots.force(shap_values[0])
Traceback
No response
Expected Behavior
The plot showing normally
Bug report checklist
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest release of shap.
I have confirmed this bug exists on the master branch of shap.
I'd be interested in making a PR to fix this bug
Installed Versions
latest right now : 0.44.0
The text was updated successfully, but these errors were encountered:
This should be fixed in the latest release 0.44.1 which has been published to PyPI and will shortly be on conda-forge. Please let us know if you still encounter the issue.
Issue Description
Javascript Not Initialized error occurs whenever I tries to use the SHAP force plot.
It works fine with other visualization though.
I even used the example code from SHAP github page.
Minimal Reproducible Example
Traceback
No response
Expected Behavior
The plot showing normally
Bug report checklist
Installed Versions
latest right now : 0.44.0
The text was updated successfully, but these errors were encountered: