| SparsePLSDACrossValidationDoCrossValidation Method |
Perform cross validation on the given data using the existing
calculator and subset generator.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public void DoCrossValidation(
DoubleMatrix X,
Factor yFactor,
int numComponents,
int[] keepX = null
)
Public Sub DoCrossValidation (
X As DoubleMatrix,
yFactor As Factor,
numComponents As Integer,
Optional keepX As Integer() = Nothing
)
public:
void DoCrossValidation(
DoubleMatrix^ X,
Factor^ yFactor,
int numComponents,
array<int>^ keepX = nullptr
)
member DoCrossValidation :
X : DoubleMatrix *
yFactor : Factor *
numComponents : int *
?keepX : int[]
(* Defaults:
let _keepX = defaultArg keepX null
*)
-> unit
Parameters
- X DoubleMatrix
- Predictor data. Matrix is number of samples rows by number
of independent variables columns.
- yFactor Factor
- Response data. Matrix is number of samples rows by number
of dependent variables columns.
- numComponents Int32
- Number of components (a.k.a. latent vectors) to
use in the PLS calculation.
- keepX Int32 (Optional)
- Vector with length equal to the number of components, the
number of variables to keep in the X loadings for each component. The
default is to keep all variables.
See Also