powered by
Create setting for DecisionTree with python
setDecisionTree(maxDepth = 10, minSamplesSplit = 2, minSamplesLeaf = 10, minImpurityDecrease = 10^-7, seed = NULL, classWeight = "None", plot = F)
The maximum depth of the tree
The minimum samples per split
The minimum number of samples per leaf
Threshold for early stopping in tree growth. A node will split if its impurity is above the threshold, otherwise it is a leaf.
The random state seed
Balance or None
Boolean whether to plot the tree (requires python pydotplus module)
# NOT RUN { model.decisionTree <- setDecisionTree(maxDepth=10,minSamplesLeaf=10, seed=NULL ) # }
Run the code above in your browser using DataLab