Skip to content

ex2o/sunnies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6714123 Â· Mar 15, 2021

History

9 Commits
Mar 3, 2021
Mar 15, 2021
Jul 28, 2020
Jul 28, 2020
Mar 3, 2021

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