org.opencv.ml
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.
Constructor and Description |
---|
CvDTreeParams()
The constructors.
|
Modifier and Type | Method and Description |
---|---|
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) |
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)
{}
public int get_cv_folds()
public int get_max_categories()
public int get_max_depth()
public int get_min_sample_count()
public float get_regression_accuracy()
public boolean get_truncate_pruned_tree()
public boolean get_use_1se_rule()
public boolean get_use_surrogates()
public void set_cv_folds(int cv_folds)
public void set_max_categories(int max_categories)
public void set_max_depth(int max_depth)
public void set_min_sample_count(int min_sample_count)
public void set_regression_accuracy(float regression_accuracy)
public void set_truncate_pruned_tree(boolean truncate_pruned_tree)
public void set_use_1se_rule(boolean use_1se_rule)
public void set_use_surrogates(boolean use_surrogates)