axe-nested_model_fit | R Documentation |
nested_model_fit objects are created from the nestedmodels package, which allows parsnip models to be fitted on nested data. Axing a nested_model_fit object involves axing all the inner model_fit objects.
## S3 method for class 'nested_model_fit'
axe_call(x, verbose = FALSE, ...)
## S3 method for class 'nested_model_fit'
axe_ctrl(x, verbose = FALSE, ...)
## S3 method for class 'nested_model_fit'
axe_data(x, verbose = FALSE, ...)
## S3 method for class 'nested_model_fit'
axe_env(x, verbose = FALSE, ...)
## S3 method for class 'nested_model_fit'
axe_fitted(x, verbose = FALSE, ...)
x |
A model object. |
verbose |
Print information each time an axe method is executed.
Notes how much memory is released and what functions are
disabled. Default is |
... |
Any additional arguments related to axing. |
Axed nested_model_fit object.
axe-model_fit
library(nestedmodels)
library(parsnip)
model <- linear_reg() %>%
set_engine("lm") %>%
nested()
nested_data <- tidyr::nest(example_nested_data, data = -id)
fit <- fit(model, z ~ x + y + a + b, nested_data)
# Reduce the model size
butcher(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.