axe-classbagg: Axing a classbagg object.

Description Usage Arguments Value Examples

Description

classbagg objects are created from the ipred package, which leverages various resampling and bagging techniques to improve predictive models.

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'classbagg'
axe_call(x, verbose = FALSE, ...)

## S3 method for class 'classbagg'
axe_data(x, verbose = FALSE, ...)

## S3 method for class 'classbagg'
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 FALSE.

...

Any additional arguments related to axing.

Value

Axed classbagg object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
# Load libraries
suppressWarnings(suppressMessages(library(ipred)))
suppressWarnings(suppressMessages(library(rpart)))
suppressWarnings(suppressMessages(library(MASS)))

# Load data
data("GlaucomaM", package = "TH.data")

classbagg_fit <- bagging(Class ~ ., data = GlaucomaM, coob = TRUE)

out <- butcher(classbagg_fit, verbose = TRUE)

# Fit another model
data("DLBCL", package = "ipred")

mod <- bagging(Gene.Expression ~ MGEc.1 + MGEc.2 + MGEc.3 + MGEc.4 + IPI,
               data = DLBCL,
               coob = TRUE)

out <- butcher(mod, verbose = TRUE)

butcher documentation built on June 28, 2021, 9:08 a.m.