Learn R Programming

butcher (version 0.3.5)

axe-xrf: Axing a xrf.

Description

Axing a xrf.

Usage

# S3 method for xrf
axe_call(x, verbose = FALSE, ...)

# S3 method for xrf axe_env(x, verbose = FALSE, ...)

Value

Axed xrf object.

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 FALSE.

...

Any additional arguments related to axing.

Examples

Run this code
if (FALSE) { # rlang::is_installed("xrf")
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)
}

Run the code above in your browser using DataLab