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

Tuning of imputation hyperparameters #154

Open
py9mrg opened this issue Feb 23, 2021 · 0 comments
Open

Tuning of imputation hyperparameters #154

py9mrg opened this issue Feb 23, 2021 · 0 comments
Labels
feature a feature request or enhancement

Comments

@py9mrg
Copy link

py9mrg commented Feb 23, 2021

Feature

In situations when I am imputing data as a recipe step, I would like to be able to tune the hyperparameters of the imputation method - which I anticipate is going to be a nightmare to implement, especially when parameters are passed between packages. For example, imputing with step_bagimpute uses ipred, which has its own hyperparameters but also passes on hyperparameters to rpart!

# the ipred hyperparameters, e.g. nbagg, can be set:

step_bagimpute(options = list(nbagg = 25))

# I'd like to be able to do something like:

step_bagimpute(options = list(nbagg = tune()))

But there's another level of HPs that ipred passes on to rpart, and it would be nice to be able to tune them as well.

# HPs can be passed through ipred to rpart

step_bagimpute(options = list(control = rpart::rpart.control(minsplit = 10))

# but it would be great to tune even these "next level" parameters:

step_bagimpute(options = list(control = rpart::rpart.control(minsplit = tune()))

Good luck!

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

2 participants