$ ./guess_the_languageAI & ML
AI & ML · hard · #10

What is the Gini impurity of this node?

Decision-tree node:
  class A: 6 samples
  class B: 2 samples
  1. 0.375
  2. 0.25
  3. 0.5
  4. 0.625
Gini = 1 - (0.75^2 + 0.25^2) = 1 - 0.625 = 0.375.
Play AI & ML ▸