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

Allow workflows without recipes #56

Open
topepo opened this issue Jan 12, 2024 · 0 comments · May be fixed by #59
Open

Allow workflows without recipes #56

topepo opened this issue Jan 12, 2024 · 0 comments · May be fixed by #59

Comments

@topepo
Copy link

topepo commented Jan 12, 2024

If we have a formula method,predict_boots() fails

library(tidymodels)
library(workboots)

car_pred_int <-
  workflow(mpg ~ ., linear_reg()) %>%
  predict_boots(
    n = 2000,
    training_data = mtcars[3:32,],
    new_data = mtcars[1:2,]
  )
#> Error in UseMethod("filter"): no applicable method for 'filter' applied to an object of class "NULL"

Created on 2024-01-12 with reprex v2.0.2

I assume that this isn’t intentional.

I think that this happens when you are trying to get the names of the predictor columns. I think have some APIs for that (I don't think that they are in any packages yet) if you want some help.

Are there any other “missing pieces” in terms of APIs that you needed but either don’t exist or are hard to find?

@topepo topepo linked a pull request Jan 29, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant