Gini impurity and information gain | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Gini impurity and information gain

Let's consider this data set: 1 0 1 0 1 0 1 0 and this split: 1 0 1 0 1 0 1 0 What's the formula to calculate Gini impurity index of three sets? And what's the formula to calculate information gain, since it is obviously 0, but Gini impurity index seems to be the same for all three sets?

21st Jun 2021, 10:07 AM
Paolo De Nictolis
Paolo De Nictolis - avatar
1 Answer