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.
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()
andsv_waterfall()
. The other functions do not need a baseline.See also the discussion here: https://github.com/ModelOriented/shapviz/pull/111#issuecomment-1766520947