Decision Tree, Cart, Machine Learning.
1 is larger than that of feature 2. So, we will use feature 1 to form the root node. Gini index: Gini Index is also a measure of impurity used to build a decision tree using the CART mechanism. It is given by: Gini Impurity= 1 — (Probability of ‘Class 1’)² — (Probability of ‘Class 2’)² Let’s see