Learn R Programming

roclab (version 0.1.4)

summary.kroclearn: Summarize a fitted kernel model

Description

Display key information from a fitted "kroclearn" object, including: data dimensions, kernel specification, convergence status, training time, and leading coefficient estimates.

Usage

# S3 method for kroclearn
summary(object, ...)

Value

Invisibly returns object after printing a formatted summary.

Arguments

object

A fitted model of class "kroclearn".

...

Unused.

See Also

kroclearn, summary.roclearn, cv.kroclearn, cv.roclearn

Examples

Run this code
set.seed(123)
n <- 100
r <- sqrt(runif(n, 0.05, 1))
theta <- runif(n, 0, 2*pi)
X <- cbind(r * cos(theta), r * sin(theta))
y <- ifelse(r < 0.5, 1, -1)

fit <- kroclearn(X, y, lambda = 0.1, kernel = "radial", approx=TRUE)
summary(fit)

Run the code above in your browser using DataLab