Decision tree
Lesson 9 of 18 · DS.Micro
A decision tree asks questions in sequence: "Proline > 755?", "Flavanoids ≤ 1.4?". Each leaf gives a class.
It is one of the few models you can read as rules. The depth controls how many questions in a row it can ask.
In Orange, connect the Tree's Model output to a Tree Viewer to see the tree drawn. Here the rules appear directly in the Tree's Output.
Connect the wine File to a Tree and read the rules in the Output.
Evaluate the Tree in a Test and Score with the wines.
Adjust the depth until the tree's CA is 0.88 or higher.
Increasing the tree depth a lot tends to…
Memorize the training data and make more mistakes on new data (overfitting)
Do it in the browser: a real data science tool, a short mission and instant feedback. No install.
Start this lesson — free