fit_glmnet_cv: Fit glmnet package with cross-validation

Description Usage Arguments Value

View source: R/engine_glmnet.R

Description

Fit glmnet package with cross-validation

Usage

1
fit_glmnet_cv(x, y, family, use_min = TRUE, ...)

Arguments

x

A matrix of features.

y

A vector of labels.

family

A character scalar of family.

use_min

A logical scalar or binary integer wheather to use lambda.min. If FALSE, lambda.1se is used.

...

Additional arguments passed to glmnet::cv.glmnet and glmnet::glmnet.

Value

A fitted object.


five-dots/ml4e documentation built on June 19, 2020, 4:26 p.m.