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

OOB error #33

Open
datalorax opened this issue Nov 10, 2020 · 2 comments
Open

OOB error #33

datalorax opened this issue Nov 10, 2020 · 2 comments
Labels
feature a feature request or enhancement

Comments

@datalorax
Copy link

Feature

Calculate out of bag error and use it for model performance estimates and hyper parameter tuning.

I did a fair amount of sleuthing on this and it looks like this used to be a feature that could be requested through control_bag(), but was removed in 9fae03c because of something related to C5.0.

I'm wondering if we can get this back for rpart models?

Extending this further, I wonder if it might be possible to use tune_grid() with a bagged model, using the OOB samples as the validation set, to tune hyperparameters. I also thought it might be worth thinking about a new function called something like fit_bagged() that would basically operate exactly like fit_resamples(), but would provide the metrics on the OOB samples.

@juliasilge juliasilge added the feature a feature request or enhancement label Nov 12, 2020
@hardin47
Copy link

hardin47 commented Nov 2, 2021

For anyone who finds this and wants a workaround, the randomForest engine (not as easy with ranger) allows you to pull the OOB models from the tidy fit. A full reproducible example is here.

@topepo
Copy link
Member

topepo commented Nov 1, 2023

We'll look back into this (it was a while back that I pulled that out) and maybe put it on the upcoming user survey.

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

No branches or pull requests

4 participants