
Performs cross-validation for mixomics sPLS to select optimal keepX and keepY
Source:R/spls.R
spls_tune.RdPeforms cross-validation to assess the optimal number of features to retain
in each dataset for a sPLS run (implemented in the mixOmics package).
Arguments
- spls_input
A
mixOmicsinput object created withget_input_mixomics_unsupervised().- keepX
Numeric vector, values for the number of features to retain from dataset X to test. Default value is
NULL(default sequence of values will be used, see details).- keepY
Numeric vector, values for the number of features to retain from dataset Y to test. Default value is
NULL(default sequence of values will be used, see details).- cpus
Integer, the number of CPUs to use when running the code in parallel. For advanced users, see the
BPPARAMargument ofmixOmics::tune.spls().- seed
Integer, seed to use. Default is
NULL, i.e. no seed is set inside the function.- ...
Further arguments passed to
mixOmics::tune.spls().
Value
A list (see mixOmics::tune.spls()).