print.msgl: Print function for msgl

View source: R/navigate.R

print.msglR Documentation

Print function for msgl

Description

This function will print some general information about the msgl object

Usage

## S3 method for class 'msgl'
print(x, ...)

Arguments

x

msgl object

...

ignored

Author(s)

Martin Vincent

Examples

data(SimData)

### Estimation
lambda <- msgl::lambda(x, classes, alpha = .5, d = 25, lambda.min = 0.075)
fit <- msgl::fit(x, classes, alpha = .5, lambda = lambda)

# Print some information about the estimated models
fit

### Cross validation
fit.cv <- msgl::cv(x, classes, alpha = .5, lambda = lambda)

# Print some information
fit.cv

### Subsampling
test <- list(1:20, 21:40)
train <- lapply(test, function(s) (1:length(classes))[-s])

lambda <- msgl::lambda(x, classes, alpha = .5, d = 50, lambda.min = 0.05)
fit.sub <- msgl::subsampling(x, classes, alpha = .5, lambda = lambda, training = train, test = test)

# Print some information
fit.sub


nielsrhansen/msgl documentation built on Feb. 6, 2024, 1:25 a.m.