[ENH] Bootstrap for ALE confidence intervals#703
Open
abaziree wants to merge 2 commits into
Open
Conversation
bthirion
reviewed
Jul 1, 2026
bthirion
left a comment
Collaborator
There was a problem hiding this comment.
Thx ! I think that we need to finalize before going to that one.
| X, | ||
| feature_idx, | ||
| grid_resolution="auto", | ||
| percentiles=(0.05, 0.95), |
Collaborator
There was a problem hiding this comment.
Suggested change
| percentiles=(0.05, 0.95), | |
| percentiles=(5, 95), |
| [value_idx[mask_low], value_idx[mask_high] + 1] | ||
| ) | ||
| combined_effects = np.concatenate([local_effects_low, local_effects_high]) | ||
| def _compute_ale_curve(X_sample): |
Collaborator
There was a problem hiding this comment.
I thought that you would have to compute the curve on fixed bins, so that the stdv makes sense ?
Collaborator
Author
There was a problem hiding this comment.
It's what is done by calculating the unique_values outside of the function which compute the curve for a given random draw with replacement from the dataset
92fd0d2 to
021fc64
Compare
021fc64 to
abf3dec
Compare
abf3dec to
485142b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to PR #701
Instead of calculating the standard deviation for each bin edge based on a single ALE curve, we calculate multiple curves to obtain more reliable confidence intervals.