You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was referenced in a Community issue previously, but the error resulting from not using a model formula with GAMs is a head-scratcher:
library(tidymodels)
gam_wflow<-
workflow() %>%
add_formula(mpg~.) %>%
add_model(gen_additive_mod("regression"))
gam_fit<-gam_wflow %>%
fit(mtcars)
#> Error in `fit_xy()`:#> ! `fit()` must be used with GAM models (due to its use of formulas).
With tune, as well, it seems to suggest even that GAMs can't be tuned / evaluated across resamples:
gam_res<- fit_resamples(gam_wflow, bootstraps(mtcars))
#> → A | error: `fit()` must be used with GAM models (due to its use of formulas).#> There were issues with some computations A: x25#> #> Warning: All models failed. Run `show_notes(.Last.tune.result)` for more#> information.
This issue 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 was referenced in a Community issue previously, but the error resulting from not using a model formula with GAMs is a head-scratcher:
With tune, as well, it seems to suggest even that GAMs can't be tuned / evaluated across resamples:
Created on 2023-11-02 with reprex v2.0.2
Related to #770.
The text was updated successfully, but these errors were encountered: