set_glmnet_alpha: set_glmnet_alpha

View source: R/dCVnet_utilities.R

set_glmnet_alphaR Documentation

set_glmnet_alpha

Description

glmnet model objects do not explicitly include the alpha value which was used when the model was fit. This utility function extends the glmnet S3 class by adding a slot for 'alpha'. This can be manually specified (setalpha) or extracted from the model object (extract_glmnet_alpha).

Usage

set_glmnet_alpha(mod, setalpha = NULL)

Arguments

mod

a glmnet or cv.glmnet model

setalpha

Specify an alpha value

Details

Note: This extension of the (cv.)glmnet S3 class is very basic.

See Also

extract_glmnet_alpha, glmnet


AndrewLawrence/dCVnet documentation built on Sept. 24, 2024, 5:24 a.m.