Click or drag to resize

PLS1CrossValidationDoCrossValidationPls1 Method

Performs cross validation on the given data using the given PLS1 calculator and number of components.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
public void DoCrossValidationPls1(
	DoubleMatrix X,
	DoubleVector y,
	IPLS1Calc calculator,
	int numComponents


X  DoubleMatrix
Predictor data. Matrix is number of samples rows by number of independent variables columns.
y  DoubleVector
Response data. Vector contains number of samples elements.
calculator  IPLS1Calc
Instance of a class implementing the IPLS1Calc interface. Used to perform the PLS1 calculations during cross validation.
numComponents  Int32
Implementation of the ICrossValidationSubsets interface that will be used to generate the training and testing subsets.
See Also