http://www.emgu.com
Assembly: Emgu.CV.ML (in Emgu.CV.ML.dll) Version: 2.3.0.1416 (2.3.0.1416)
Train the SVM model with the specific paramters
Namespace: Emgu.CV.MLAssembly: Emgu.CV.ML (in Emgu.CV.ML.dll) Version: 2.3.0.1416 (2.3.0.1416)
Syntax
C# |
---|
public bool Train( Matrix<float> trainData, Matrix<float> responses, Matrix<byte> varIdx, Matrix<byte> sampleIdx, SVMParams parameters ) |
Visual Basic |
---|
Public Function Train ( _ trainData As Matrix(Of Single), _ responses As Matrix(Of Single), _ varIdx As Matrix(Of Byte), _ sampleIdx As Matrix(Of Byte), _ parameters As SVMParams _ ) As Boolean |
Visual C++ |
---|
public: bool Train( Matrix<float>^ trainData, Matrix<float>^ responses, Matrix<unsigned char>^ varIdx, Matrix<unsigned char>^ sampleIdx, SVMParams^ parameters ) |
Parameters
- trainData
- Type: Emgu.CV..::..Matrix<(Of <(<'Single>)>)>
The training data.
- responses
- Type: Emgu.CV..::..Matrix<(Of <(<'Single>)>)>
The response for the training data.
- varIdx
- Type: Emgu.CV..::..Matrix<(Of <(<'Byte>)>)>
Can be null if not needed. When specified, identifies variables (features) of interest. It is a Matrix<int> of nx1
- sampleIdx
- Type: Emgu.CV..::..Matrix<(Of <(<'Byte>)>)>
Can be null if not needed. When specified, identifies samples of interest. It is a Matrix<int> of nx1
- parameters
- Type: Emgu.CV.ML..::..SVMParams
The parameters for SVM
Return Value
[Missing <returns> documentation for "M:Emgu.CV.ML.SVM.Train(Emgu.CV.Matrix{System.Single},Emgu.CV.Matrix{System.Single},Emgu.CV.Matrix{System.Byte},Emgu.CV.Matrix{System.Byte},Emgu.CV.ML.SVMParams)"]