Hunt's Algorithm: D y (Y, Y, Y, ..., y
Hunt's Algorithm: D y (Y, Y, Y, ..., y
Hunt's Algorithm
Step 1: If all the records in D❑t belong to the same class y ❑t , then t is a leaf
node labeled as y ❑t .
Step 2: If D❑t contains records that belong to more than one class; an attribute test
condition is selected to partition the records into smaller subsets. A child node is
created for each outcome of the test condition and the records in D❑t are distributed
to the children based on the outcomes. The algorithm is then recursively applied to
each child node.
Example: Training set for predicting borrowers who will default on loan payments.
Aakash Raj Dhakal
2 No Married 100k No
3 No Single 70K No
6 No Married 60K No
9 No Married 75k No
Defaulted = No
Home
Owner
Yes No
Defaulted=No Defaulted=No
Home
Owner
Ye No
s
Defaulted=N
o Marital
Status
Single Married
Divorced
Defaulted=Y Defaulted=N
es o
4.Using test condition based on Annual Income
Home
Owner
Ye No
s
Defaulted=N
o Marital
Status
Single Married
Divorced
Defaulted=N
Annual o
<80 Income >=80
K K
Defaulted=N Defaulted=Y
o es