lasso.control: lasso.control

Description Usage Arguments Value Author(s) Source Examples

View source: R/Kernel_lasso.R

Description

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

Usage

1
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

Author(s)

Zongrui Dai

Source

https://github.com/Zongrui-Dai/Kernel-lasso-feature-expansion

Examples

1
2
##10-fold Cross-validation with MSE as loss function
c<-lasso.control(nfolds=10,type.measure='mse')

KLexp documentation built on Aug. 21, 2021, 5:07 p.m.

Related to lasso.control in KLexp...