http://www.emgu.com
Train the SVM model with the specific paramters

Namespace: Emgu.CV.ML
Assembly: Emgu.CV.ML (in Emgu.CV.ML.dll) Version: 2.4.10.1935 (2.4.10.1935)

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
)
F#
member Train : 
        trainData : Matrix<float32> * 
        responses : Matrix<float32> * 
        varIdx : Matrix<byte> * 
        sampleIdx : Matrix<byte> * 
        parameters : SVMParams -> bool 

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

Type: Boolean

[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)"]

See Also