Base class for parameters of the decision forest classification training algorithm.
More...
long getFeaturesPerNode |
( |
| ) |
|
Returns number of features tried as possible splits by the decision forest classification training algorithm If 0 then sqrt(p) is used, where p is the total number of features.
- Returns
- Number of features
double getImpurityThreshold |
( |
| ) |
|
Returns threshold value used as stopping criteria: if the impurity value in the node is smaller than the threshold then the node is not split anymore
- Returns
- Impurity threshold
Returns maximal tree depth. Default is 0 (unlimited)
- Returns
- Maximal tree depth
long getMinObservationsInLeafNode |
( |
| ) |
|
Returns minimal number of samples per node. Default is 1
- Returns
- Minimal number of samples
Returns number of trees to be created by the decision forest classification training algorithm
- Returns
- Number of trees
double getObservationsPerTreeFraction |
( |
| ) |
|
Returns fraction of observations used for a training of one tree, 0 to 1. Default is 1 (sampling with replacement)
- Returns
- Fraction of observations
long getResultsToCompute |
( |
| ) |
|
Gets the 64 bit integer flag that indicates the results to compute
- Returns
- The 64 bit integer flag that indicates the results to compute
- Deprecated:
- This item will be removed in a future release.
Returns the seed for the random numbers generator used by the algorithm
- Returns
- Seed for the seed for the random numbers generator used by the algorithm
Returns variable importance computation mode
- Returns
- Variable importance computation mode
Sets the engine to be used by the algorithm
- Parameters
-
engine | to be used by the algorithm |
void setFeaturesPerNode |
( |
long |
value | ) |
|
Sets the number of features tried as possible splits by decision forest classification training algorithm. If 0 then sqrt(p) is used, where p is the total number of features.
- Parameters
-
void setImpurityThreshold |
( |
double |
value | ) |
|
Sets threshold value used as stopping criteria
- Parameters
-
void setMaxTreeDepth |
( |
long |
value | ) |
|
Sets maximal tree depth. Default is 0 (unlimited)
- Parameters
-
void setMinObservationsInLeafNode |
( |
long |
value | ) |
|
Sets minimal number of samples per node. Default is 1
- Parameters
-
value | Minimal number of samples |
void setNTrees |
( |
long |
nTrees | ) |
|
Sets the number of trees to be created by the decision forest classification training algorithm
- Parameters
-
void setObservationsPerTreeFraction |
( |
double |
value | ) |
|
Sets fraction of observations used for a training of one tree, 0 to 1
- Parameters
-
value | Fraction of observations |
void setResultsToCompute |
( |
long |
resultsToCompute | ) |
|
Sets the 64 bit integer flag that indicates the results to compute
- Parameters
-
resultsToCompute | The 64 bit integer flag that indicates the results to compute |
- Deprecated:
- This item will be removed in a future release.
Sets the seed for the random numbers generator used by the algorithm
- Parameters
-
seed | Seed for the random numbers generator used by the algorithm |
Sets the variable importance computation mode
- Parameters
-
value | Variable importance computation mode |
The documentation for this class was generated from the following file:
- decision_forest/classification/training/Parameter.java