ModelOriented / ModelOriented/DALEX

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

Open
#470 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature 💡 Python 🐍
Dominant language
Python
Stars
1.5k
Forks
172
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the model_profile entry point and trace how variable_splits is applied to feature grids. Verify the partial dependence plot case where one feature has a custom maximum of 10 while unspecified features retain their defaults; the work is done when partial grids no longer need to be supplied for every feature.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization, machine-learning
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.