The method takes the feature vector and the optional missing measurement mask on input, traverses the random tree and returns the cumulative result from all the trees in the forest (the class that receives the majority of voices, or the mean of the regression function estimates)
Namespace: Emgu.CV.MLAssembly: Emgu.CV.ML (in Emgu.CV.ML.dll) Version: 2.2.0.1010 (2.2.0.1010)
Syntax
C# | Visual Basic | Visual C++ |
Parameters
- missingDataMask
- 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)
- weakResponses
- Matrix<(Of <(<'Single>)>)>
Can be null if not needed. a floating-point vector, of responses from each individual weak classifier. The number of elements in the vector must be equal to the slice length.
- slice
- MCvSlice
The continuous subset of the sequence of weak classifiers to be used for prediction
- rawMode
- Boolean
Normally set to false that implies a regular input. If it is true, the method assumes that all the values of the discrete input variables have been already normalized to 0..num_of_categoriesi-1 ranges. (as the decision tree uses such normalized representation internally). It is useful for faster prediction with tree ensembles. For ordered input variables the flag is not used.