Click or drag to resize

SparsePLSDACrossValidationDoCrossValidation Method

Perform cross validation on the given data using the existing calculator and subset generator.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public void DoCrossValidation(
	DoubleMatrix X,
	Factor yFactor,
	int numComponents,
	int[] keepX = null
)

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