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

Accessing probabilities of bagged models #4180

Open
amanmalali opened this issue May 8, 2024 · 3 comments
Open

Accessing probabilities of bagged models #4180

amanmalali opened this issue May 8, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request module: tabular
Milestone

Comments

@amanmalali
Copy link

Hi, I was wondering if there's any way of accessing the probabilities of each of the bagged models which are averaged to get the output of predict_proba() for the L1 models? This would be helpful to be able to calculate uncertainties for each of the models as well as uncertainty for the entire weighted ensemble

Thanks!

@Innixma Innixma added this to the 1.2 Release milestone May 8, 2024
@Innixma Innixma added enhancement New feature or request module: tabular labels May 8, 2024
@Innixma Innixma self-assigned this May 8, 2024
@Innixma
Copy link
Contributor

Innixma commented May 8, 2024

Hi @amanmalali, this is a good feature request, and I've been playing around with ideas on how to add this in a nice way (want to also make the fold models viewable in .leaderboard() for example). This is on our radar to add in an upcoming release.

@amanmalali
Copy link
Author

Hi @Innixma, any way I could help? I've been modifying the repo to access this, so if there's a branch it's being worked on I could try to help!

@Innixma
Copy link
Contributor

Innixma commented May 15, 2024

@amanmalali Thanks for your interest! if you have a branch with the changes, I could take a look as a reference. For this one it is a bit in-depth for the official implementation, since I want the fold models to also be viewable in predictor.leaderboard(..., show_folds=True).

For the implementation I would be basing things off of BaggedEnsembleModel.predict_proba_children to fetch the fold predictions. If you have an implementation for calculating uncertainty of a bagged model based on the child predictions, that could be valuable to share as a reference code implementation. We could add it as a new method to BaggedEnsembleModel, such as BaggedEnsembleModel.compute_uncertainty(X_holdout)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request module: tabular
Projects
None yet
Development

No branches or pull requests

2 participants