Clevix Ed

Decision Tree Classifier

Coding & AI · Class 9–12 · Classification

All simulations
Tap the map to trace a point down the tree

What to explore

Key ideas

A decision tree asks yes/no questions about the features. Each split is chosen to make the groups as pure as possible.

Gini = 1 − Σ pᵢ²
Entropy = − Σ pᵢ log₂ pᵢ

A pure group (all one colour) has Gini = 0 and entropy = 0. A 50–50 mix has Gini = 0.5 and entropy = 1.

Teacher tip

Play “20 questions” first: each good question halves the possibilities. A tree learns the best questions from data.

Point out that every split is a straight line parallel to an axis, so diagonal borders need many small steps.

Exam corner

In your syllabus

A free coding & ai simulation for Class 9–12.

Topics: decision tree, Gini impurity, entropy, classification, overfitting, machine learning