Index Ai Academy
Glossary · Phase 3 · Machine learning

Gini impurity

Also written: Gini

How mixed a group is: the chance two random picks from it (with replacement) disagree. 0 means everyone in the group has the same label.

A good question splits the customers into two groups that are each as pure as possible. Ideally the stayers end up on one side and the churners on the other. To compare questions, the tree needs a number for how mixed a group is. The usual one is Gini impurity.

Try it now

Raise the depth and watch the score on seen points climb to 100% while the score on new points stops improving.

Learn it properly

Decision trees · Learn a flowchart of yes/no questions. About 30 minutes.

Create a free account See what's in the lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write