Train the decision tree using the specific traning data

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,
	DATA_LAYOUT_TYPE tflag,
	Matrix<float> responses,
	Matrix<byte> varIdx,
	Matrix<byte> sampleIdx,
	Matrix<byte> varType,
	Matrix<byte> missingMask,
	MCvDTreeParams param
)
Public Function Train ( _
	trainData As Matrix(Of Single), _
	tflag As DATA_LAYOUT_TYPE, _
	responses As Matrix(Of Single), _
	varIdx As Matrix(Of Byte), _
	sampleIdx As Matrix(Of Byte), _
	varType As Matrix(Of Byte), _
	missingMask As Matrix(Of Byte), _
	param As MCvDTreeParams _
) As Boolean
public:
bool Train(
	Matrix<float>^ trainData, 
	DATA_LAYOUT_TYPE tflag, 
	Matrix<float>^ responses, 
	Matrix<unsigned char>^ varIdx, 
	Matrix<unsigned char>^ sampleIdx, 
	Matrix<unsigned char>^ varType, 
	Matrix<unsigned char>^ missingMask, 
	MCvDTreeParams param
)

Parameters

trainData
Matrix<(Of <(<'Single>)>)>
The training data. A 32-bit floating-point, single-channel matrix, one vector per row
tflag
DATA_LAYOUT_TYPE
data layout type
responses
Matrix<(Of <(<'Single>)>)>
A floating-point matrix of the corresponding output vectors, one vector per row.
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
varType
Matrix<(Of <(<'Byte>)>)>
The types of input variables
missingMask
Matrix<(Of <(<'Byte>)>)>
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.Byte},Emgu.CV.Matrix{System.Byte},Emgu.CV.Matrix{System.Byte},Emgu.CV.Matrix{System.Byte},Emgu.CV.ML.Structure.MCvDTreeParams)"]

See Also