Skip to content

ex2o/sunnies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sunnies 😎

Shapley values that uncover nonlinear dependencies

Herein lie code and results for the paper Explaining the data or explaining a model? Shapley values that uncover non-linear dependencies by Daniel Fryer, Inga Strumke and Hien Nguyen.

Guide

  • For the R script that generates the majority of the results, see here. The other R files are dependencies of that script.
  • For the Python script that produces SAGE and SHAP results for the dataset drift example, see here.
  • The shapley function here can be used to calculate Shapley values given a data set and utility function (e.g., choosing a measure of non-linear dependence as the utility function will produce Sunnies values). Some utility functions can be found here.
  • Run the Python script here to generate the violin plot in Figure 2.
  • Other Python files in the Python directory are dependencies of the violin plot script, and can also be used to calculate Shapley and Sunnies values for any data generating process or data set.

Resources

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published