public interface BaseTreeSettings extends Verifiable
| Modifier and Type | Method and Description |
|---|---|
double |
getConfidenceFactor()
Confidence factor for estimating error made by tree for pruning
purposes.
|
double |
getHomogenousDensity()
The smallest density of any target in node to justify changing it into
leaf.
|
int |
getMaxNodeRank()
Maximum number of children for each node.
|
int |
getMaxNumberOfBestPredicates() |
int |
getMaxTreeDepth()
Maximum depth of the tree. 0 means no height limit.
|
double |
getMinLeafSize()
What is the minimum leaf size.
|
double |
getMinLeafSizePrc()
What is the minimum leaf size relatively to the whole data set size.
|
double |
getMinNodeSize()
Minimum number of samples for a node.
|
double |
getMinNodeSizePrc()
Minimal node size calculated as percent of the training set size.
|
double |
getMinSplitEvaluationGain()
The minimum gain in split evaluation value, to continue splitting a node.
|
int |
getNumberOfHistogramQuantiles()
Number of histogram quantiles in split editor
|
int |
getSplitSampling() |
boolean |
isCalculateSplitStatistics()
Calculate split statistics
|
boolean |
isNodeRules() |
boolean |
isNullTestAllowed()
Experimental feature.
|
boolean |
isPruneTree()
Decides whether tree will be pruned after building.
|
boolean |
isPruneValidation() |
boolean |
isSmoothHistograms()
If true, histograms in split statistics will be smooth, using kernel density estimation method
|
void |
setCalculateSplitStatistics(boolean set)
Calculate split statistics
|
void |
setConfidenceFactor(double factor)
Confidence factor for estimating error made by tree for pruning
purposes.
|
void |
setHomogenousDensity(double maxPValue)
The smallest density of any target in node to justify changing it into
leaf.
|
void |
setMaxNodeRank(int maxSplits)
Maximum number of children nodes for a node.
|
void |
setMaxNumberOfBestPredicates(int maxNumberOfPredicates)
Maximum number of best predicates computed in the building phase of the
algorithm.
|
void |
setMaxTreeDepth(int maxDepth)
The maximum tree depth.
|
void |
setMinLeafSize(double minLeafSize)
Sets the minimum size of a tree leaf - a node split is performed only if every leaf
has at least that number of observations.
|
void |
setMinLeafSizePrc(double minLeafSizePrc)
Sets the minimum size of a tree leaf relatively to the whole data set size
- a node split is performed only if every leaf has at least that number of
observations.
|
void |
setMinNodeSize(double size)
The minimal number of samples for a node.
|
void |
setMinNodeSizePrc(double prc)
Minimal node size calculated as percent of the training set size.
|
void |
setMinSplitEvaluationGain(double minImpurity)
The minimum gain in split evaluation value, to continue splitting a node.
|
void |
setNodeRules(boolean b) |
void |
setNullTestAllowed(boolean allowed)
Experimental feature.
|
void |
setNumberOfHistogramQuantiles(int quantiles)
Number of histogram quantiles in split editor
|
void |
setPruneTree(boolean prune)
Decides whether tree will be pruned after building.
|
void |
setPruneValidation(boolean b) |
void |
setSmoothHistograms(boolean smooth)
If true, histograms in split statistics will be smooth, using kernel density estimation method
|
void |
setSplitSampling(int s) |
verifyvoid setMaxTreeDepth(int maxDepth)
maxDepth - Maximum tree depth. Must be >= 0. If 0 is set, no there are no
restriction to the tree depth. Default value is 20.int getMaxTreeDepth()
throws GSException
biz.sc.gornik.common.GSExceptionGSExceptionsetMaxTreeDepth(int)void setMinNodeSize(double size)
throws GSException
size - minimal number of samples for a node. Real number >=0. If set
to 0, there is no restriction to the node size. Default value
0.0.biz.sc.gornik.common.GSExceptionGSExceptiondouble getMinNodeSize()
throws GSException
biz.sc.gornik.common.GSExceptionGSExceptionsetMinNodeSize(double)double getMinSplitEvaluationGain()
throws GSException
biz.sc.gornik.common.GSExceptionGSExceptionsetMinSplitEvaluationGain(double)void setMinSplitEvaluationGain(double minImpurity)
throws GSException
minImpurity - The minimum gain in split evaluation value, to continue
splitting a node. Real number [0.0, 1.0]. Default value 0.0.biz.sc.gornik.common.GSExceptionGSExceptionint getMaxNodeRank()
throws GSException
biz.sc.gornik.common.GSExceptionGSExceptionsetMaxNodeRank(int)void setMaxNodeRank(int maxSplits)
throws GSException
Algorithm takes two types of tests for nominal attributes: binary, and grouped. It starts value grouping, every time joining two best values together, decreasing number of values in split. The process iterates, until every value joining decreases the assessment value. Result of grouping is split with some number of possible results. If the number is less than max node rank value, than grouped split is used. In other way binary split is used.
Algorithm takes two types of tests for nominal attributes: binary or multi-value. If number of values for the attribute is less than max node rank value, than multi-value is used. If not, than binary is used.
maxSplits - Maximum number of children for each node. Integer number >= 2.
Default value is 2.biz.sc.gornik.common.GSExceptionGSExceptiondouble getHomogenousDensity()
throws GSException
biz.sc.gornik.common.GSExceptionGSExceptionsetMaxNodeRank(int)void setHomogenousDensity(double maxPValue)
throws GSException
maxPValue - The smallest density of any target in node to justify changing
it into leaf. Real number (0.0, 1.0]. Default value is 1.0.biz.sc.gornik.common.GSExceptionGSExceptionvoid setPruneTree(boolean prune)
prune - Decides whether tree will be pruned after building. Default
value is true.boolean isPruneTree()
setPruneTree(boolean)void setConfidenceFactor(double factor)
factor - Confidence factor valuedouble getConfidenceFactor()
setConfidenceFactor(double)int getMaxNumberOfBestPredicates()
void setMaxNumberOfBestPredicates(int maxNumberOfPredicates)
biz.sc.mm.dm.modelstats.tree.Node#getBestPredicates() property.maxNumberOfPredicates - maximum number of best predicates. Valid values are integers
greater or equal 1boolean isCalculateSplitStatistics()
void setCalculateSplitStatistics(boolean set)
int getNumberOfHistogramQuantiles()
void setNumberOfHistogramQuantiles(int quantiles)
boolean isSmoothHistograms()
void setSmoothHistograms(boolean smooth)
double getMinNodeSizePrc()
void setMinNodeSizePrc(double prc)
void setMinLeafSize(double minLeafSize)
minLeafSize - The number of observations.double getMinLeafSize()
setMinLeafSize(double)void setMinLeafSizePrc(double minLeafSizePrc)
minLeafSizePrc - The number of observations.double getMinLeafSizePrc()
setMinLeafSizePrc(double)void setNullTestAllowed(boolean allowed)
boolean isNullTestAllowed()
void setPruneValidation(boolean b)
boolean isPruneValidation()
int getSplitSampling()
void setSplitSampling(int s)
boolean isNodeRules()
void setNodeRules(boolean b)