Plot the decision surface of decision trees trained on the iris dataset
Plot the decision surface of a decision tree trained on pairs of features of the iris dataset.
See decision tree for more information on the estimator.
For each pair of iris features, the decision tree learns decision boundaries made of combinations of simple thresholding rules inferred from the training samples.
We also show the tree structure of a model built on all of the features.
# Authors: The scikit-learn developers
# SPDX-License-Identifier: BSD-3-Clause
First load the copy of the Iris dataset shipped with scikit-learn:
from sklearn.datasets

