Perform cross validation on the given data using the existing
calculator and subset generator.
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public void DoCrossValidation( DoubleMatrix X, DoubleMatrix Y, int numComponents ) |
| Visual Basic (Declaration) |
|---|
Public Sub DoCrossValidation ( _ X As DoubleMatrix, _ Y As DoubleMatrix, _ numComponents As Integer _ ) |
| Visual C++ |
|---|
public: void DoCrossValidation( DoubleMatrix^ X, DoubleMatrix^ Y, int numComponents ) |
Parameters
- X
- Type: CenterSpace.NMath.Core..::.DoubleMatrix
Predictor data. Matrix is number of samples rows by number of independent variables columns.
- Y
- Type: CenterSpace.NMath.Core..::.DoubleMatrix
Response data. Matrix is number of samples rows by number of dependent variables columns.
- numComponents
- Type: System..::.Int32
Number of components (a.k.a. latent vectors) to use in the PLS calculation.