Decision Tree, Cart, Machine Learning.
weighted average of Gini impurity: =43/100* 0.30+ 57/100*38=0.34 Similarly, we calculate the Gini impurity index for other features also. One thing to notice is that if every entry in a dataset belongs to only 1 class, i.e, either class 1 or class 2, Gini Impurity: 1-(1/(0+1)²)-(0/(0+1)²)=0 So, we