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 static bool CvSVMTrain(
	IntPtr model,
	IntPtr trainData,
	IntPtr responses,
	IntPtr varIdx,
	IntPtr sampleIdx,
	ref MCvSVMParams parameters
)
Visual Basic
Public Shared Function CvSVMTrain ( 
	model As IntPtr,
	trainData As IntPtr,
	responses As IntPtr,
	varIdx As IntPtr,
	sampleIdx As IntPtr,
	ByRef parameters As MCvSVMParams
) As Boolean
Visual C++
public:
static bool CvSVMTrain(
	IntPtr model, 
	IntPtr trainData, 
	IntPtr responses, 
	IntPtr varIdx, 
	IntPtr sampleIdx, 
	MCvSVMParams% parameters
)
F#
static member CvSVMTrain : 
        model : IntPtr * 
        trainData : IntPtr * 
        responses : IntPtr * 
        varIdx : IntPtr * 
        sampleIdx : IntPtr * 
        parameters : MCvSVMParams byref -> bool 

Parameters

model
Type: System..::..IntPtr
The SVM model
trainData
Type: System..::..IntPtr
The training data. A 32-bit floating-point, single-channel matrix
responses
Type: System..::..IntPtr
The response for the training data. It's usually a 32-bit floating point matrix; In classification problem, it can be an Int32 matrix.
varIdx
Type: System..::..IntPtr
Can be IntPtr.Zero if not needed. When specified, identifies variables (features) of interest. It is a Matrix>int< of nx1
sampleIdx
Type: System..::..IntPtr
Can be IntPtr.Zero if not needed. When specified, identifies samples of interest. It is a Matrix>int< of nx1
parameters
Type: Emgu.CV.ML.Structure..::..MCvSVMParams%
The parameters for SVM

Return Value

Type: Boolean

[Missing <returns> documentation for "M:Emgu.CV.ML.MlInvoke.CvSVMTrain(System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr,Emgu.CV.ML.Structure.MCvSVMParams@)"]

See Also