ModelOriented / iBreakDown

Break Down with interactions for local explanations (SHAP, BreakDown, iBreakDown)
https://ModelOriented.github.io/iBreakDown/
GNU General Public License v3.0
81 stars 15 forks source link

How can we apply model oriented ibreakdown to complete data set #95

Closed anuradham7 closed 2 years ago

anuradham7 commented 3 years ago

right now it just takes one observation at a time, is there any provision to run it for entire data set ? bd_rf <- predict_parts(explainer = explain_rf,new_observation = test[1,] , type = "break_down")

hbaniecki commented 3 years ago

Hi, did you consider looping over the observations of interest? This is how I apply it in the modelStudio package.

pbiecek commented 2 years ago

the reason was that the plot() function would not draw explanations well with predict_part() for multiple points. With predict_profile(), you can draw all the profiles in one plot. But for predict_part() there is no good way to simultaneously draw multiple attributions for multiple observations.