DALEX icon indicating copy to clipboard operation
DALEX copied to clipboard

Wish: allow model_profile to specify only some variable_splits (python)

Open mayer79 opened this issue 3 years ago • 3 comments

I am using dalex to plot multiple partial dependence plots in Python. It is a very useful package!

For some numeric features (especially those with outliers), I would like to specify the evaluation grid using option variable_splits in model_profile. However, if I do this, I need to specify a grid for all other features as well. Ideally, the function would use the keys in variable_splits only to overwrite the default. For those features without specified variable_splits key, it would resort to the default.

In the following case: the left-most feature should stop at a maximum of 10. The range for the other feature is fine though:

image

mayer79 avatar Oct 16 '21 10:10 mayer79

Agreed, but it will change the default behaviour so it probably should be added in v1.5.0.

hbaniecki avatar Oct 17 '21 08:10 hbaniecki

Oops, wrong button ;-). Sounds reasonable! My suggestion only makes a difference if a variable list is passed as well. If there is no such list, it makes sense to only plot variables appearing in the keys.

mayer79 avatar Oct 17 '21 09:10 mayer79

Actually, I am not sure if it makes sense for the keys of variable_splits to override variables=None (like it is now). This behaviour was probably copied from R. I will investigate it.

hbaniecki avatar Oct 17 '21 09:10 hbaniecki