http://www.emgu.com
Train the decision tree using the specific traning data

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,
	DATA_LAYOUT_TYPE tflag,
	Matrix<float> responses,
	Matrix<byte> varMask,
	Matrix<byte> sampleMask,
	Matrix<byte> varType,
	Matrix<byte> missingMask,
	MCvDTreeParams param
)
Visual Basic
Public Function Train ( 
	trainData As Matrix(Of Single),
	tflag As DATA_LAYOUT_TYPE,
	responses As Matrix(Of Single),
	varMask As Matrix(Of Byte),
	sampleMask As Matrix(Of Byte),
	varType As Matrix(Of Byte),
	missingMask As Matrix(Of Byte),
	param As MCvDTreeParams
) As Boolean
Visual C++
public:
bool Train(
	Matrix<float>^ trainData, 
	DATA_LAYOUT_TYPE tflag, 
	Matrix<float>^ responses, 
	Matrix<unsigned char>^ varMask, 
	Matrix<unsigned char>^ sampleMask, 
	Matrix<unsigned char>^ varType, 
	Matrix<unsigned char>^ missingMask, 
	MCvDTreeParams param
)
F#
member Train : 
        trainData : Matrix<float32> * 
        tflag : DATA_LAYOUT_TYPE * 
        responses : Matrix<float32> * 
        varMask : Matrix<byte> * 
        sampleMask : Matrix<byte> * 
        varType : Matrix<byte> * 
        missingMask : Matrix<byte> * 
        param : MCvDTreeParams -> bool 

Parameters

trainData
Type: Emgu.CV..::..Matrix<(Of <(<'Single>)>)>
The training data. A 32-bit floating-point, single-channel matrix, one vector per row
tflag
Type: Emgu.CV.ML.MlEnum..::..DATA_LAYOUT_TYPE
data layout type
responses
Type: Emgu.CV..::..Matrix<(Of <(<'Single>)>)>
A floating-point matrix of the corresponding output vectors, one vector per row.
varMask
Type: Emgu.CV..::..Matrix<(Of <(<'Byte>)>)>
Can be null if not needed. When specified, it is a mask that identifies variables (features) of interest. It must be a Matrix>Byte< of n x 1 where n is the number of rows in trainData
sampleMask
Type: Emgu.CV..::..Matrix<(Of <(<'Byte>)>)>
Can be null if not needed. When specified, it is a mask identifies samples of interest. It must be a Matrix>Byte< of nx1, where n is the number of rows in trainData
varType
Type: Emgu.CV..::..Matrix<(Of <(<'Byte>)>)>
The types of input variables
missingMask
Type: Emgu.CV..::..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
Type: Emgu.CV.ML.Structure..::..MCvDTreeParams
The parameters for training the decision tree

Return Value

Type: Boolean

[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