Nothing
Code
last_fit(lm_fit)
Condition
Error in `last_fit()`:
! `last_fit()` (`?tune::last_fit()`) is not well-defined for fitted model objects.
i `last_fit()` (`?tune::last_fit()`) takes a model specification (`?parsnip::model_spec()`) or unfitted workflow (`?workflows::workflow()`) as its first argument.
Code
last_fit(lm_fit)
Condition
Error in `last_fit()`:
! `last_fit()` is not well-defined for a fitted workflow.
Code
linear_reg() %>% set_engine("lm") %>% last_fit(f, split, something = "wrong")
Condition
Warning:
The `...` are not used in this function but one or more objects were passed: 'something'
Output
# Resampling results
# Manual resampling
# A tibble: 1 x 6
splits id .metrics .notes .predictions .workflow
<list> <chr> <list> <list> <list> <list>
1 <split [24/8]> train/test split <tibble [2 x 4]> <tibble [0 x 3]> <tibble [8 x 4]> <workflow>
Code
last_fit(rec, lin_mod, split)
Condition
Error in `last_fit()`:
! The first argument to [last_fit()] should be either a model or workflow.
Code
last_fit(f, lin_mod, split)
Condition
Error in `last_fit()`:
! The first argument to [last_fit()] should be either a model or workflow.
last_fit()
when objects need tuning2 arguments have been tagged for tuning in these components: model_spec and recipe.
Please use one of the tuning functions (e.g. `tune_grid()`) to optimize them.
1 argument has been tagged for tuning in this component: model_spec.
Please use one of the tuning functions (e.g. `tune_grid()`) to optimize them.
1 argument has been tagged for tuning in this component: recipe.
Please use one of the tuning functions (e.g. `tune_grid()`) to optimize them.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.