Description Usage Arguments Examples
Create setting for DecisionTree with python
1 2 3 4 5 6 7 8 9 | setDecisionTree(
maxDepth = 10,
minSamplesSplit = 2,
minSamplesLeaf = 10,
minImpurityDecrease = 10^-7,
seed = NULL,
classWeight = "None",
plot = F
)
|
maxDepth |
The maximum depth of the tree |
minSamplesSplit |
The minimum samples per split |
minSamplesLeaf |
The minimum number of samples per leaf |
minImpurityDecrease |
Threshold for early stopping in tree growth. A node will split if its impurity is above the threshold, otherwise it is a leaf. |
seed |
The random state seed |
classWeight |
Balance or None |
plot |
Boolean whether to plot the tree (requires python pydotplus module) |
1 2 3 4 | ## Not run:
model.decisionTree <- setDecisionTree(maxDepth=10,minSamplesLeaf=10, seed=NULL )
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.