Skip to content
Shap values for model interpretation
Branch: master
Clone or download
Latest commit 74a94dc Mar 23, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md readme Mar 18, 2019
shap.R Update shap.R Mar 19, 2019
shap_analysis.R SHAP analysis and plot library Mar 17, 2019

README.md

This repository contains the backround code of: How to intepret SHAP values in R

To execute this project, open and run shap_analysis.R (wich loads shap.R).

It will load the bike dataset, do some data preparation, create a predictive model (xgboost), obtaining the SHAP values and then it will plot them:

Shap summary

Shap summary

It is easy to reproduce with other data. Have fun!

You can’t perform that action at this time.