Repository navigation
Conversation
❌ Linting issuesThis PR is introducing linting issues. Here's a summary of the issues. Note that you can avoid having linting issues by enabling You can see the details of the linting issues under the
|
|
@mayer79 Thanks for working on this important inspection tool. To get rid of the linter issues, you might use a pre-commit hook, see https://scikit-learn.org/dev/developers/contributing.html#how-to-contribute. @amueller @glemaitre @adrinjalali ping as this might interest you. |
lorentzenchr
left a comment
There was a problem hiding this comment.
A first quick pass. Maybe, _partial_dependence_brute can help with the tests.
Co-authored-by: Christian Lorentzen <[email protected]>
The naming will pop up during further review anyway. One possibility would be |
|
I opened #30111 to discuss a parameter to deal with the trade-off memory/speed. I think it could be a good addition. |
Quick pass on some parameter naming
|
@antoinebaker would you be kind to give a review here? |
|
Hi @mayer79 and @glemaitre, what is the current status of this PR ? If I understood correctly, this PR implements its own partial dependence computation through Should this PR wait for #30111 to be finalized before moving on, and refactor to use the new |
|
The issue with #30111 is that it doesn't really seem to be doing what it intends to do, so we shouldn't wait for that. |
In terms of scope, it would be nice to merge this feature. In terms of code, I recall that I wanted to avoid to repeat some common code with partial dependence for maintainability. When it comes to #30111, the idea was to get a way to limit the impact of memory consumption at the cost of computation. But reading back the experiments, it was not conclusive. I assume that we might go forward with a first version and then we could always try to improve it later. |
Co-authored-by: Quentin Barthélemy <[email protected]>
|
Let's reopen when more brain power is getting allocated to the inspection module. |
|
reopened to not lose it |
Reference Issues/PRs
Implements #22383
What does this implement/fix? Explain your changes.
@lorentzenchr
This PR implements a clean version of Friedman's H^2 statistic of pairwise interaction strength. It uses a couple of tricks to speed up the calculations. Still, one needs to be cautious when adding more than 6-8 features. The basic strategy is to select e.g. the top 5 predictors via permutation importance and then crunch the corresponding pairwise (absolute and relative) interaction strength statistics.
(My) reference implementation: https://github.com/mayer79/hstats
Any other comments?