slim: Slim nestedcv models

View source: R/slim.R

slimR Documentation

Slim nestedcv models

Description

Slims nestedcv objects to only the models in the outer CV folds.

Usage

slim(x)

Arguments

x

A 'nestedcv' or 'cva.glmnet' fitted model object.

Value

For 'nestedcv' objects, a list object of the same class but only containing outer_result. For 'cva.glmnet' models, only the cv.glmnet model with the best alpha value is kept. Models for all other values of alpha are discarded.

See Also

nestcv.glmnet() nestcv.train() outercv() cva.glmnet()


nestedcv documentation built on April 4, 2025, 2:21 a.m.