Emgu CV Library Documentation
Train Method (trainData, tflag, responses, varIdx, sampleIdx, varType, missingMask, param)
NamespacesEmgu.CV.MLDTreeTrain(Matrix<(Of <(Single>)>), DATA_LAYOUT_TYPE, Matrix<(Of <(Single>)>), Matrix<(Of <(Int32>)>), Matrix<(Of <(Int32>)>), Matrix<(Of <(Int32>)>), Matrix<(Of <(Int32>)>), MCvDTreeParams)

Train the decision tree using the specific traning data
Declaration Syntax
C#Visual BasicVisual C++
public bool Train(
	Matrix<float> trainData,
	Matrix<float> responses,
	Matrix<int> varIdx,
	Matrix<int> sampleIdx,
	Matrix<int> varType,
	Matrix<int> missingMask,
	MCvDTreeParams param
Public Function Train ( _
	trainData As Matrix(Of Single), _
	responses As Matrix(Of Single), _
	varIdx As Matrix(Of Integer), _
	sampleIdx As Matrix(Of Integer), _
	varType As Matrix(Of Integer), _
	missingMask As Matrix(Of Integer), _
	param As MCvDTreeParams _
) As Boolean
bool Train(
	Matrix<float>^ trainData, 
	Matrix<float>^ responses, 
	Matrix<int>^ varIdx, 
	Matrix<int>^ sampleIdx, 
	Matrix<int>^ varType, 
	Matrix<int>^ missingMask, 
	MCvDTreeParams param
trainData (Matrix<(Of <(Single>)>))
The training data. A 32-bit floating-point, single-channel matrix, one vector per row
data layout type
responses (Matrix<(Of <(Single>)>))
A floating-point matrix of the corresponding output vectors, one vector per row.
varIdx (Matrix<(Of <(Int32>)>))
Can be null if not needed. When specified, identifies variables (features) of interest. It is a Matrix>int< of nx1
sampleIdx (Matrix<(Of <(Int32>)>))
Can be null if not needed. When specified, identifies samples of interest. It is a Matrix>int< of nx1
varType (Matrix<(Of <(Int32>)>))
The types of input variables
missingMask (Matrix<(Of <(Int32>)>))
Can be null if not needed. When specified, it is an 8-bit matrix of the same size as trainData, is used to mark the missed values (non-zero elements of the mask)
param (MCvDTreeParams)
The parameters for training the decision tree
Return Value

[Missing <returns> documentation for M:Emgu.CV.ML.DTree.Train(Emgu.CV.Matrix{System.Single},Emgu.CV.ML.MlEnum.DATA_LAYOUT_TYPE,Emgu.CV.Matrix{System.Single},Emgu.CV.Matrix{System.Int32},Emgu.CV.Matrix{System.Int32},Emgu.CV.Matrix{System.Int32},Emgu.CV.Matrix{System.Int32},Emgu.CV.ML.Structure.MCvDTreeParams)]

Assembly: Emgu.CV.ML (Module: Emgu.CV.ML) Version: (