Skip to content
Exit presentation

AI Literacy II: Training and Decision Trees

A chain of yes/no questions that sorts a pile

A lost-property box holds things people forgot to take. It has a sock, a tiffin box and a rope. Sort them onto shelves.

One question to start: does it have pages?
Step 1 of 4
  1. One question to start: does it have pages?
  2. Yes: paper shelf. No: ask about cloth.
  3. Yes: cloth shelf. No: ask about food or drink.
  4. Yes: food-and-drink shelf. No: the odds box.

A decision tree asks one yes/no question at a time. Two things that end up together gave the same answers. Each answer leads to the next question. The odds box holds what fits no shelf.

You chose these questions. A program can also choose questions, from labelled examples. A labelled example is one case with its answer already on it. The tree looks the same.

A question that leaves everything on one side has not helped. Each thing gets the same answer, so nothing is sorted. Good questions split the pile.

Ask the questions. Count what is left.

Loading lab…

Jump to lesson

This track

  1. 0 Start here
  2. 1 A written rule and a learned part, in one machine
  3. 2 Showing it examples that carry their answers
  4. 3 A chain of yes/no questions that sorts a pile
  5. 4 What kind of examples did it learn from?
  6. 5 Following a wrong answer back
  7. 6 The big picture
  8. 7 Track quiz

Other tracks