Skip to content

Instantly share code, notes, and snippets.

@MoGaber
Created December 14, 2020 05:14
Show Gist options
  • Save MoGaber/d5f82cd0dd7ea207fb13de6d805362aa to your computer and use it in GitHub Desktop.
Save MoGaber/d5f82cd0dd7ea207fb13de6d805362aa to your computer and use it in GitHub Desktop.
shap
explainer = shap.LinearExplainer(LR, x_train, feature_perturbation="interventional")
shap_values = explainer.shap_values(x_test)
shap.summary_plot(shap_values, x_train, plot_type="bar")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment