What is the Gini impurity of a node that contains 50% class A and 50% class B?
Correct answer
C. 0.5
17 views
C. 0.5
17 views
Gini = 1 − Σpᵢ² = 1 − (0.25 + 0.25) = 0.5, the maximum for two classes. A pure node has a Gini impurity of 0.
Asked in: Data Science Interviews, GATE DA
Not sure why the answer is C? Ask here and get an explanation.