Axing an earth object.Source:
earth objects are created from the earth package, which is leveraged to do multivariate adaptive regression splines.
# S3 method for earth axe_call(x, verbose = FALSE, ...) # S3 method for earth axe_data(x, verbose = FALSE, ...) # S3 method for earth axe_fitted(x, verbose = FALSE, ...)
A model object.
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.
# Load libraries library(parsnip) # Create model and fit earth_fit <- mars(mode = "regression") %>% set_engine("earth") %>% fit(Volume ~ ., data = trees) out <- butcher(earth_fit, verbose = TRUE) #> ✖ No memory released. Do not butcher. # Another earth model object suppressWarnings(suppressMessages(library(earth))) earth_mod <- earth(Volume ~ ., data = trees) out <- butcher(earth_mod, verbose = TRUE) #> ✖ No memory released. Do not butcher.