Learn Before
Concept
Addressing Decision Tree Limitations
Pre-pruning: provide a max_depth, max_leafnodes, or min_samples_leaf parameters of the tree to stop the growth early clf2 = DecisionTreeClassifier(max_depth = 3).fit(X_train, y_train)
Post-pruning/pruning: build a complete tree with all pure leaves then prune back the tree into a simpler form; this is not available in SciKit Learn Controlling Decision Tree Complexity
0
1
Updated 2020-09-12
Tags
Data Science