
Extract optimal number of features to keep from cross-validation results for sO2PLS
Source:R/so2pls.R
so2pls_get_optim_keep.Rd
Extracts the optimal number of features to retain from datasets X
and Y
for the joint components.
Arguments
- cv_res
List, result from a call to the
so2pls_crossval_sparsity()
orOmicsPLS::crossval_sparsity()
.- use_1sd_rule
Boolean, should the 1 standard deviation rule be used when selecting the optimal number of features to retain? See Details.