http://www.emgu.com
Train the decision tree using the specific training 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 static bool CvDTreeTrain(
	IntPtr model,
	IntPtr trainData,
	DATA_LAYOUT_TYPE tflag,
	IntPtr responses,
	IntPtr varIdx,
	IntPtr sampleIdx,
	IntPtr varType,
	IntPtr missingMask,
	MCvDTreeParams param
)
Visual Basic
Public Shared Function CvDTreeTrain ( 
	model As IntPtr,
	trainData As IntPtr,
	tflag As DATA_LAYOUT_TYPE,
	responses As IntPtr,
	varIdx As IntPtr,
	sampleIdx As IntPtr,
	varType As IntPtr,
	missingMask As IntPtr,
	param As MCvDTreeParams
) As Boolean
Visual C++
public:
static bool CvDTreeTrain(
	IntPtr model, 
	IntPtr trainData, 
	DATA_LAYOUT_TYPE tflag, 
	IntPtr responses, 
	IntPtr varIdx, 
	IntPtr sampleIdx, 
	IntPtr varType, 
	IntPtr missingMask, 
	MCvDTreeParams param
)
F#
static member CvDTreeTrain : 
        model : IntPtr * 
        trainData : IntPtr * 
        tflag : DATA_LAYOUT_TYPE * 
        responses : IntPtr * 
        varIdx : IntPtr * 
        sampleIdx : IntPtr * 
        varType : IntPtr * 
        missingMask : IntPtr * 
        param : MCvDTreeParams -> bool 

Parameters

model
Type: System..::..IntPtr
The Decision Tree model
trainData
Type: System..::..IntPtr
The training data. A 32-bit floating-point, single-channel matrix, one vector per row
tflag
Type: Emgu.CV.ML.MlEnum..::..DATA_LAYOUT_TYPE
The data layout type of the train data
responses
Type: System..::..IntPtr
A floating-point matrix of the corresponding output vectors, one vector per row.
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
varType
Type: System..::..IntPtr
The types of input variables
missingMask
Type: System..::..IntPtr
Can be IntPtr.Zero 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.MlInvoke.CvDTreeTrain(System.IntPtr,System.IntPtr,Emgu.CV.ML.MlEnum.DATA_LAYOUT_TYPE,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr,Emgu.CV.ML.Structure.MCvDTreeParams)"]

See Also