Machine Learning, Decision Tree, Python, Tutorial, Learning.
Virginica. These will be our targets. Our goal is to predict which category an Iris flower belongs to. The petal length and width in centimeters are stored as columns, which we also call the features of the dataset. Let’s first import the dataset and assign the features as X and the target as y: