Learn Before
Code

Scikit learn key decision tree parameters

Max depth controls the maximum depth or the number of split points the decision can have and it's the most common parameter used to reduce tree complexity and thus reduce overfitting. The min samples leaf parameter is the threshold that controls what the minimum number of data instances has to be in a leaf to avoid splitting it further. This setting also reduces tree complexity. Finally, max leaf nodes limits the total number of nodes that are leaves of the tree.

0

2

Updated 2021-02-10

Tags

Data Science