Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Add confidence interval to plot_target_feature_distribution #673

Open
ibenfjord opened this issue Aug 19, 2020 · 0 comments
Open

ENH: Add confidence interval to plot_target_feature_distribution #673

ibenfjord opened this issue Aug 19, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@ibenfjord
Copy link
Collaborator

ibenfjord commented Aug 19, 2020

ENH: Add a Bootstrap function #672 should be done before this one

Is your feature request related to a problem? Please describe.
It would give more information if the confidence intervals are visualised in the figure

Describe the solution you'd like
Use a bootstrap function to calculate the confidence intervals then use
percentile = np.percentile(final_bootstrap, (2.5, 97.5))

The percentile needs to be transformed since the bar plot function subtracts the numbers.
percentile[0, :] = abs(data - percentile[0, :]) percentile[1, :] = abs(percentile[1, :] - data)

Then add the following to the _plot_barh
xerr=percentile if n_boot else None

@ibenfjord ibenfjord added the enhancement New feature or request label Aug 19, 2020
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

No branches or pull requests

1 participant