Created
          December 14, 2020 11:27 
        
      - 
      
 - 
        
Save betterdatascience/65db591e2c840940d6ea5480feccbe05 to your computer and use it in GitHub Desktop.  
Revisions
- 
        
betterdatascience created this gist
Dec 14, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ import shap shap.initjs() shap_explainer = shap.TreeExplainer(model) shap_values = shap_explainer.shap_values(X) shap.force_plot(shap_explainer.expected_value, shap_values[1, :], test_1)