5

Does Gini-index based classification split values for any attribute always as a binary split or can it split into more than $2$ branches (multi-way split)?

For more clarification, if a split on $A$ partitions $D$ into $D_1$ and $D_2$ , the Gini-index of $D$ given that partitioning is,

enter image description here

This is actually a binary split. Can there be also $D_4, D_5$ etc... too if it is not a binary split so that the formula will be,

enter image description here

JMP
  • 22,637

1 Answers1

0

Yes, Gini-index can be used for multi-way splitting, like entropy. And the second formula you mentioned is correct if the feature has 3 distinct value, i.e. It can be generalized for more than this if the number of distinct values is more.