


















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















values (class labels) in a classifying attribute and uses it in classifying
new data
missing values
Prediction Problems: Classification vs.
Numeric Prediction
Classification—A Two-Step Process
class label attribute
formulae
model
the model
Classifier
Testing
Data
Unseen Data
(Jeff, Professor, 4)
NAME RANK YEARS TENURED
Tom Assistant Prof 2 no
Merlisa Associate Prof 7 no
George Professor 5 yes
Joseph Assistant Prof 7 yes
Decision Tree Induction: An Example
age?
overcast
student? credit rating?
no yes
yes
yes
31..
no
excellent fair no yes
Training data set: Buys_computer
Resulting tree:
age income student credit_rating buys_computer
<=30 high no fair no
<=30 high no excellent no
31…40 high no fair yes
40 medium no fair yes
40 low yes fair yes
40 low yes excellent no
31…40 low yes excellent yes
<=30 medium no fair no
<=30 low yes fair yes
40 medium yes fair yes
<=30 medium yes excellent yes
31…40 medium no excellent yes
31…40 high yes fair yes
40 medium no excellent no
Brief Review of Entropy
m = 2
Attribute Selection Measure:
Information Gain (ID3/C4.5)
Select the attribute with the highest information gain
Let p i
be the probability that an arbitrary tuple in D belongs to class C i
estimated by |C i , D
Expected information (entropy) needed to classify a tuple in D:
Information needed (after using A to split D into v partitions) to classify
Information gained by branching on attribute A
( ) log ( ) 2
1
i
m
i
i
Info D p p
1
j
v
j
j
A
Gain(A) Info(D) Info (D) A