| PLS1CrossValidationDoCrossValidationPls1 Method |
Performs cross validation on the given data using the given PLS1
calculator and number of components.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public 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 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