Train the SVM model with the specific paramters

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public bool Train(
	Matrix<float> trainData,
	Matrix<float> responses,
	Matrix<byte> varIdx,
	Matrix<byte> sampleIdx,
	SVMParams parameters
)
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
public:
bool Train(
	Matrix<float>^ trainData, 
	Matrix<float>^ responses, 
	Matrix<unsigned char>^ varIdx, 
	Matrix<unsigned char>^ sampleIdx, 
	SVMParams^ parameters
)

Parameters

trainData
Matrix<(Of <(<'Single>)>)>
The training data.
responses
Matrix<(Of <(<'Single>)>)>
The response for the training data.
varIdx
Matrix<(Of <(<'Byte>)>)>
Can be null if not needed. When specified, identifies variables (features) of interest. It is a Matrix<int> of nx1
sampleIdx
Matrix<(Of <(<'Byte>)>)>
Can be null if not needed. When specified, identifies samples of interest. It is a Matrix<int> of nx1
parameters
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)"]

See Also