0
9.8kviews
Explain decision tree learning with an example. What are decision rules? How to use it for classifying new samples?
1 Answer
written 8.0 years ago by |
Decision Tree: a decision tree consists of Nodes, Edges & Leaves
In Decision Tree Learning, a new example is classified by submitting it to a series of tests that determine the class label of the example. These tests are organized in a hierarchical structure called a decision tree.
The training examples are used for choosing appropriate tests in the decision tree. Typically, a tree is built from top to bottom, where tests that maximize the information gain about the classification are selected first.
To classify a sample:
Rule induction
Application: A sample Task
Day | Temperature | Outlook | Humidity | Windy | Play Golf? |
---|---|---|---|---|---|
07-05 | Hot | Sunny | High | False | No |
07-06 | Hot | Sunny | High | True | No |
07-07 | Hot | Overcast | High | False | Yes |
07-08 | Cold | Sunny | Normal | False | Yes |
07-09 | Cold | Overcast | Normal | True | Yes |
07-10 | mild | Sunny | High | False | No |
07-11 | Cold | Sunny | Normal | False | Yes |
07-12 | mild | Rain | Normal | False | Yes |
07-13 | mild | Sunny | Normal | True | Yes |
07-14 | mild | Overcast | High | True | Yes |
07-15 | Hot | Overcast | Normal | False | Yes |
07-16 | mild | Rain | High | True | No |
07-17 | Cold | Rain | Normal | True | No |
07-18 | mild | Rain | High | False | Yes |
Today | mild | Sunny | Normal | False | ? |