Machine Learning, Decision Tree, Explainable Ai, Beginners Guide, Understanding.
impurity with the split at petal width = 1.3 cm Left node : Right node : The Gini impurity for this split is : The algorithm is right and our intuition was wrong. Indeed the first split produces the lowest Gini impurity so this split is preferable. Reminder : The algorithm tries each possible split