ModelOriented / shapviz

SHAP Plots in R
https://modeloriented.github.io/shapviz/
GNU General Public License v2.0
79 stars 14 forks source link

Individual baselines #113

Closed mayer79 closed 10 months ago

mayer79 commented 1 year ago

The "shap" package in Python stores baseline values per observation, while {shapviz} stores a single value. In most of the cases, this will do the job, but the Python logic is more flexible.

We should probably switch to the more flexible solution. A lot of functions need to be adapted, but the change affects only two plot functions: sv_force() and sv_waterfall(). The other functions do not need a baseline.

See also the discussion here: https://github.com/ModelOriented/shapviz/pull/111#issuecomment-1766520947

mayer79 commented 10 months ago

Currently, I don't think we need to change the baseline logic. We can open the issue again, if there is a very good use case.