Skip to content

[ENH] Bootstrap for ALE confidence intervals#703

Open
abaziree wants to merge 2 commits into
297-alefrom
297-ale-bootstrap
Open

[ENH] Bootstrap for ALE confidence intervals#703
abaziree wants to merge 2 commits into
297-alefrom
297-ale-bootstrap

Conversation

@abaziree

Copy link
Copy Markdown
Collaborator

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.

@abaziree abaziree added the enhancement New feature or request label Jun 29, 2026
@abaziree abaziree requested a review from bthirion June 29, 2026 09:29

@bthirion bthirion left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx ! I think that we need to finalize before going to that one.

X,
feature_idx,
grid_resolution="auto",
percentiles=(0.05, 0.95),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought that you would have to compute the curve on fixed bins, so that the stdv makes sense ?

@abaziree abaziree Jul 1, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@abaziree abaziree mentioned this pull request Jul 1, 2026
1 task
@abaziree abaziree force-pushed the 297-ale-bootstrap branch 4 times, most recently from 92fd0d2 to 021fc64 Compare July 3, 2026 15:00
@abaziree abaziree force-pushed the 297-ale-bootstrap branch from 021fc64 to abf3dec Compare July 3, 2026 15:17
@abaziree abaziree force-pushed the 297-ale-bootstrap branch from abf3dec to 485142b Compare July 3, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants