-
Notifications
You must be signed in to change notification settings - Fork 2
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
Allow other preprocessors #9
Conversation
collections | ||
} | ||
|
||
bind_metrics_iter_grid <- function(metrics, iter_grid) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bind .config
to metrics
# prep training and validation data | ||
training_frame_processed <- recipes::bake(preprocessor, new_data = training_frame) | ||
val_frame_processed <- recipes::bake(preprocessor, new_data = val_frame) | ||
training_forged <- tune:::forge_from_workflow(training_frame, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use forge_from_workflow
instead of recipes::bake
, works when there is no recipe
That that line is fine. I think that it's time to add tests (with recipes, formulas, and variable specifications). They'll have to skip for now but we can run them locally. |
This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
This PR should allow tuning when there is no recipe and other types of preprocessors #5.Not sure if we need to change this line https://github.com/topepo/agua/blob/e789ffa750262ffb31c46c50c41e755e9a8cd9d5/R/tune.R#L27 seems to work when there is no recipe.
We also need additional internal
tune
functionsforge_from_workflow
andfinalize_workflow_preprocessor