Description Usage Arguments Author(s) Examples
This function will print some general information about the msgl object
1 2 |
x |
msgl object |
... |
ignored |
Martin Vincent
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.