Skip to content

liuwuping/Shapley-Value

 
 

Repository files navigation

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!

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • R 100.0%