|
OpenCV 2.4.3.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opencv.ml.CvDTreeParams
public class CvDTreeParams
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.
Field Summary | |
---|---|
protected long |
nativeObj
|
Constructor Summary | |
---|---|
|
CvDTreeParams()
The constructors. |
protected |
CvDTreeParams(long addr)
|
Method Summary | |
---|---|
protected void |
finalize()
|
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 |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final long nativeObj
Constructor Detail |
---|
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)
{}
protected CvDTreeParams(long addr)
Method Detail |
---|
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
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)
|
Official OpenCV 2.4 Documentation | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |