Learn R Programming

KLexp (version 1.0.0)

lasso.control: lasso.control

Description

The same function from glmnet, which controls the training of lasso.

Usage

lasso.control(nfolds = 10, trace.it = 1, type.measure = "auc")

Arguments

nfolds

n-fold cross-validation.

trace.it

Whether to plot the training process

type.measure

Choose the loss funcrion.

Value

Will return the lasso training setting

Examples

Run this code
# NOT RUN {
##10-fold Cross-validation with MSE as loss function
c<-lasso.control(nfolds=10,type.measure='mse')
# }

Run the code above in your browser using DataLab