














































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!















































Decision Trees^
CS446 Fall 08^
Home workRegistration
Decision Trees^
CS446 Fall 08^
Introduction - Summary^ •^ We introduced the technical part of the class by giving two examples for (very different)approaches to linear discrimination.^ •^ There are many other solutions.^ •^ Questions 1: Our solution assumed that the target functions are linear. Can we learn afunction that is more flexible in terms of what it does with the features space?^ •^ Question 2: Can we say something about the quality of what we learn (samplecomplexity, time complexity; quality)
Decision Trees^
CS446 Fall 08^
Decision Trees^
CS446 Fall 08^
Color
Shape Blue^
red^ Green Shapetriangle^ circlesquare
circle square
Decision Trees^
CS446 Fall 08^
X<3 no yesY>7^ Y<
yesno +- +
-
no^ yes
1 3
X Y+^75 +
+ - -
Decision Trees^
CS446 Fall 08^
Outlook Overcast RainSunnyHumidity^ Wind^ Yes NormalHighWeakStrongYesYesNo^ No
Decision Trees^
CS446 Fall 08^
Color
Shape Blue^
red^ Green Shapetriangle^ circlesquare
circle square
Decision Trees^
CS446 Fall 08^
Humidity^ Wind
PlayTennis
1 Sunny^
Hot^ High
Weak^
No
2 Sunny^
Hot^ High
Strong^
No
3 Overcast^
Hot^ High
Weak^
Yes
4 Rain^
Mild^ High
Weak^
Yes
5 Rain^
Cool^ Normal
Weak^
Yes
6 Rain^
Cool^ Normal
Strong^
No
7 Overcast^
Cool^ Normal
Strong^
Yes
8 Sunny^
Mild^ High
Weak^
No
9 Sunny^
Cool^ Normal
Weak^
Yes
10 Rain^
Mild^ Normal
Weak^
Yes
11 Sunny^
Mild^ Normal
Strong^
Yes
12 Overcast^
Mild^ High
Strong^
Yes
13 Overcast^
Hot^ Normal
Weak^
Yes
14 Rain^
Mild^ High
Strong^
No Outlook Overcast RainSunnyHumidity^ Wind^ Yes NormalHighWeakStrongYesYesNo^ No
Decision Trees^
CS446 Fall 08^
Decision Trees^
CS446 Fall 08^
Decision Trees^
CS446 Fall 08^
Decision Trees^
CS446 Fall 08^
of a set of examples, S, relative
-^ If the examples are equally mixed (0.5,0.5)
)log(pp)log(p Entropy = 1 p Entropy(S)^
−− −−++ = + p p^ − Entropy can be viewed as the number of bits required, on average, to encode the class oflabels. If the probability for + is 0.5, a single bit is required for each example; if it is 0.8 --can use less then 1 bit.
k −=^ )log(pp}),...p ∑ ii = i^1 p, Entropy({p^
k (^21)
In general, when p
is the fraction of examples labeled i:i^
Decision Trees^
CS446 Fall 08^
-^ If the examples are equally mixed (0.5,0.5)
p^ + p^ − 1 1
1
)log(pp )log(pp Entropy(S)^
−− −−++ =
of a set of examples, S, relative to a binary classification is:
Decision Trees^
CS446 Fall 08^
v