This is documentation for an old release of Scikit-learn (version 1.3). Try the latest stable release (version 1.6) or development (unstable) versions.
Decision Trees¶
Examples concerning the sklearn.tree
module.

Plot the decision surface of decision trees trained on the iris dataset
Plot the decision surface of decision trees trained on the iris dataset

Post pruning decision trees with cost complexity pruning
Post pruning decision trees with cost complexity pruning