nmod.msgl: Number of models used for fitting

Description Usage Arguments Value Author(s) Examples

View source: R/navigate.R

Description

Returns the number of models used for fitting. Note that cv and subsampling objects does not containing any models even though nmod returns a positive number.

Usage

1
2
## S3 method for class 'msgl'
nmod(object, ...)

Arguments

object

a msgl object

...

not used

Value

the number of models in object

Author(s)

Martin Vincent

Examples

1
2
3
4
5
6
7
8
data(SimData)


lambda <- msgl::lambda(x, classes, alpha = .5, d = 50, lambda.min = 0.05)
fit <- msgl::fit(x, classes, alpha = .5, lambda = lambda)

# the number of models
nmod(fit)

nielsrhansen/msgl documentation built on May 28, 2019, 11:05 a.m.