text_plain_output_1.png
from sklearn import datasets

from sklearn.tree import DecisionTreeClassifier

iris = datasets.load_iris()

model = DecisionTreeClassifier(random_state=42)
model.fit(iris.data, iris.target)

model.predict(iris.data)