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

Supporting a grid of models #6

Open
3 tasks
cimentadaj opened this issue Jun 4, 2020 · 1 comment
Open
3 tasks

Supporting a grid of models #6

cimentadaj opened this issue Jun 4, 2020 · 1 comment

Comments

@cimentadaj
Copy link
Owner

cimentadaj commented Jun 4, 2020

Is there room for creating a new type of object that allows you to make a grid of model objects? This grid can be added to the workflow and it will only add it to the model slot, while fit will have a method for running all three models

  • Check if they've done this in parsnip or tune

  • Think about how to extract the results of some many models

  • How would you select the best model? This is a big chunk of stuff as it will return all models for all tuning params for all metrics. How can users explore this? All of this is important since in the end we want a single final model.

An idea:

       model_grid(
         linear_reg() %>% set_engine("glmnet") %>% grid_regular(levels = 10),
         rand_forest(mtry = tune()) %>% set_engine("ranger") %>% grid_regular(levels = 100),
         svm_rbf(cost = tune()) %>% set_engine("kernlab") %>% grid_random(size = 10)
       )
@gutama
Copy link

gutama commented Mar 9, 2021

Hi Jorge,

In tidymodels, they have workflowsets

I still wonder as I mentioned in issue #31 while working with DALEXtra
the relationship of tidyflow and workflow, why It can't be like tibble and data.frame relationship,

tibble is also a dataframe but It can convert back and forth using convenience methods

It will be easier if tidyflow has method
as_tidyflow(aWorkflow)
as.workflow(aTidtflow

Thank you

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

No branches or pull requests

2 participants