nmod.msgl | R Documentation |
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.
## S3 method for class 'msgl'
nmod(object, ...)
object |
a msgl object |
... |
not used |
the number of models in object
Martin Vincent
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.