ModelOriented / iBreakDown

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

Code review for v 1.0.0 #22

Closed pbiecek closed 5 years ago

pbiecek commented 5 years ago

What to check:

agosiewska commented 5 years ago

Comments for Thursday

- how about moving parameter interaction_preference after label? The order of parameters common with function local_attributions would overlap. https://github.com/ModelOriented/iBreakDown/blob/1096fa4482dc0d8fb6b4ef202b0a87277246e4a2/R/break_interactions.R#L88-L93 https://github.com/ModelOriented/iBreakDown/blob/1096fa4482dc0d8fb6b4ef202b0a87277246e4a2/R/break_down.R#L85-L89

agosiewska commented 5 years ago

- names of parameters in plotD3() and plot() are inconsistent https://github.com/ModelOriented/iBreakDown/blob/1096fa4482dc0d8fb6b4ef202b0a87277246e4a2/R/plotD3.R#L55-L59 https://github.com/ModelOriented/iBreakDown/blob/1096fa4482dc0d8fb6b4ef202b0a87277246e4a2/R/plot.R#L83-L85

pbiecek commented 5 years ago

Most of these issues get fixed. Thanks. Code is refactored and simplified, but the part for interactions is not a production quality code.

Once the methodology behind interactions will be established we need to rewrite local_interactions