Decision trees: Check your understanding
Stay organized with collections
Save and categorize content based on your preferences.
This page challenges you to answer a series of multiple choice exercises
about the material discussed in the "Decision trees" unit.
Question 1
The inference of a decision tree runs by routing an example...
from the leaf to the root.
All inference starts from the root (the first condition).
from one leaf to another.
All inference starts from the root, not from a leaf.
from the root to the leaf.
Well done!
Question 2
Do all conditions involve only a single feature?
Yes.
Oblique features test multiple features.
No.
Although axis-aligned conditions only involve a single feature,
oblique conditions involve multiple features.
Question 3
Consider the following prediction map on two features x1 and x2:
Which of the following decision trees match the prediction map?
Decision Tree B.
If the condition x2 ≥ 0.5 is no, then the leaf may or may not be
blue, so this is a bad condition.
Decision Tree C.
If x1 is not ≥ 1.0, then the leaf should be 'blue' rather than
'orange', so this is the wrong leaf.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-01-23 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-01-23 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-01-23 UTC."]]