Learn R Programming

butcher (version 0.3.5)

axe-gausspr: Axing a gausspr.

Description

gausspr objects are created from kernlab package, which provides a means to do classification, regression, clustering, novelty detection, quantile regression and dimensionality reduction. Since fitted model objects from kernlab are S4, the butcher_gausspr class is not appended.

Usage

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

# S3 method for gausspr axe_data(x, verbose = FALSE, ...)

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

# S3 method for gausspr axe_fitted(x, verbose = FALSE, ...)

Value

Axed gausspr 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("kernlab")
library(kernlab)

test <- gausspr(Species ~ ., data = iris, var = 2)

out <- butcher(test, verbose = TRUE)

# Example with simulated regression data
x <- seq(-20, 20, 0.1)
y <- sin(x)/x + rnorm(401, sd = 0.03)
test2 <- gausspr(x, y)
out <- butcher(test2, verbose = TRUE)
}

Run the code above in your browser using DataLab