 | 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
Syntaxpublic void DoCrossValidationPls1(
DoubleMatrix X,
DoubleVector y,
IPLS1Calc calculator,
int numComponents
)
Public Sub DoCrossValidationPls1 (
X As DoubleMatrix,
y As DoubleVector,
calculator As IPLS1Calc,
numComponents As Integer
)
public:
void DoCrossValidationPls1(
DoubleMatrix^ X,
DoubleVector^ y,
IPLS1Calc^ calculator,
int numComponents
)
member DoCrossValidationPls1 :
X : DoubleMatrix *
y : DoubleVector *
calculator : IPLS1Calc *
numComponents : int -> unit
Parameters
- X
- Type: CenterSpace.NMath.CoreDoubleMatrix
Predictor data. Matrix is number of samples rows by number
of independent variables columns. - y
- Type: CenterSpace.NMath.CoreDoubleVector
Response data. Vector contains number of samples elements. - calculator
- Type: CenterSpace.NMath.CoreIPLS1Calc
Instance of a class implementing the IPLS1Calc
interface. Used to perform the PLS1 calculations during cross validation. - numComponents
- Type: SystemInt32
Implementation of the ICrossValidationSubsets
interface that will be used to generate the training and testing subsets.
See Also