← All lessons
02

Decision Trees

A decision tree learns by asking a sequence of yes/no questions. Each answer sends the data down a branch until it reaches a prediction at a leaf.

Set the size and wings below. Watch the data point follow the green path as it answers each question on the way to a leaf.

size > 5 ?Mousewings ?DogBird
size6

The data point answers each question and follows the green path down. Prediction: Dog.

Check yourself

Which single question does every prediction depend on first?

Next: Attention