axe-xrf {butcher} | R Documentation |
Axing a xrf.
Description
Axing a xrf.
Usage
## S3 method for class 'xrf'
axe_call(x, verbose = FALSE, ...)
## S3 method for class 'xrf'
axe_env(x, verbose = FALSE, ...)
Arguments
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. |
Value
Axed xrf object.
Examples
library(xrf)
xrf_big <- function() {
boop <- runif(1e6)
xrf(
mpg ~ .,
mtcars,
xgb_control = list(nrounds = 2, max_depth = 2),
family = 'gaussian'
)
}
heavy_m <- xrf_big()
m <- butcher(heavy_m, verbose = TRUE)
weigh(heavy_m)
weigh(m)
[Package butcher version 0.3.4 Index]