OpenCV 2.4.3.2

org.opencv.ml
Class CvDTreeParams

java.lang.Object
  extended by org.opencv.ml.CvDTreeParams
Direct Known Subclasses:
CvBoostParams, CvGBTreesParams, CvRTParams

public class CvDTreeParams
extends java.lang.Object

The structure contains all the decision tree training parameters. You can initialize it by default constructor and then override any parameters directly before training, or the structure may be fully initialized using the advanced variant of the constructor.

See Also:
org.opencv.ml.CvDTreeParams

Constructor Summary
CvDTreeParams()
          The constructors.
 
Method Summary
 int get_cv_folds()
           
 int get_max_categories()
           
 int get_max_depth()
           
 int get_min_sample_count()
           
 float get_regression_accuracy()
           
 boolean get_truncate_pruned_tree()
           
 boolean get_use_1se_rule()
           
 boolean get_use_surrogates()
           
 void set_cv_folds(int cv_folds)
           
 void set_max_categories(int max_categories)
           
 void set_max_depth(int max_depth)
           
 void set_min_sample_count(int min_sample_count)
           
 void set_regression_accuracy(float regression_accuracy)
           
 void set_truncate_pruned_tree(boolean truncate_pruned_tree)
           
 void set_use_1se_rule(boolean use_1se_rule)
           
 void set_use_surrogates(boolean use_surrogates)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CvDTreeParams

public CvDTreeParams()

The constructors.

The default constructor initializes all the parameters with the default values tuned for the standalone classification tree:

// C++ code:

CvDTreeParams() : max_categories(10), max_depth(INT_MAX), min_sample_count(10),

cv_folds(10), use_surrogates(true), use_1se_rule(true),

truncate_pruned_tree(true), regression_accuracy(0.01f), priors(0)

{}

See Also:
org.opencv.ml.CvDTreeParams.CvDTreeParams
Method Detail

get_cv_folds

public int get_cv_folds()

get_max_categories

public int get_max_categories()

get_max_depth

public int get_max_depth()

get_min_sample_count

public int get_min_sample_count()

get_regression_accuracy

public float get_regression_accuracy()

get_truncate_pruned_tree

public boolean get_truncate_pruned_tree()

get_use_1se_rule

public boolean get_use_1se_rule()

get_use_surrogates

public boolean get_use_surrogates()

set_cv_folds

public void set_cv_folds(int cv_folds)

set_max_categories

public void set_max_categories(int max_categories)

set_max_depth

public void set_max_depth(int max_depth)

set_min_sample_count

public void set_min_sample_count(int min_sample_count)

set_regression_accuracy

public void set_regression_accuracy(float regression_accuracy)

set_truncate_pruned_tree

public void set_truncate_pruned_tree(boolean truncate_pruned_tree)

set_use_1se_rule

public void set_use_1se_rule(boolean use_1se_rule)

set_use_surrogates

public void set_use_surrogates(boolean use_surrogates)

OpenCV 2.4.3.2 Documentation