Table of Contents

Class RTrees

Namespace
OpenCvSharp.ML
Assembly
OpenCvSharp.dll

The class implements the random forest predictor.

public class RTrees : DTrees, IDisposable
Inheritance
RTrees
Implements
Inherited Members

Properties

ActiveVarCount

The size of the randomly selected subset of features at each tree node and that are used to find the best split(s).

CalculateVarImportance

If true then variable importance will be calculated and then it can be retrieved by RTrees::getVarImportance. Default value is false.

TermCriteria

The termination criteria that specifies when the training algorithm stops.

Methods

Create()

Creates the empty model.

GetVarImportance()

Returns the variable importance array. The method returns the variable importance vector, computed at the training stage when CalculateVarImportance is set to true. If this flag was set to false, the empty matrix is returned.

GetVotes(InputArray, OutputArray, int)

Returns the class probabilities for each sample, as voted by each of the trees.

Load(string)

Loads and creates a serialized model from a file.

LoadFromString(string)

Loads algorithm from a String.