Description Usage Arguments Value Author(s)
Use generalized liner model (glm) via penalized maximim likelihood to classify data. This function is a front-end to the "cv.glmnet" method in the "glmnet" package. Please refer to the documentation in that package for more details.
1 2 |
distances.tb |
a time series with a set of distance measures for each training sample |
family |
Response type. Can be either "gaussian", "binomial", "poisson", "multinomial", "cox", or "mgaussian". (default: "multinomial") |
alpha |
the elasticnet mixing parameter, with 0<=alpha<=1. Set alpha = 0.0 to obtain ridge model, and alpha = 1.0 to obtain lasso model). (refer to 'glmnet::cv.glmnet' function for more details) |
lambda_kfolds |
number of folds to find best lambda parameter (default: 10) |
... |
other parameters to be passed to 'glmnet::cv.glmnet' function |
result either an model function to be passed in sits_predict or an function prepared that can be called further to compute multinom training model
Alexandre Xavier Ywata de Carvalho, alexandre.ywata@ipea.gov.br
Rolf Simoes, rolf.simoes@inpe.br
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.