Documente Academic
Documente Profesional
Documente Cultură
[read Chapter 2]
[suggested exercises 2.2, 2.3, 2.4, 2.6]
Learning from examples
General-to-specic ordering over hypotheses
Version spaces and candidate elimination
algorithm
Picking new examples
The need for inductive bias
22 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Training Examples for EnjoySport
23 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Representing Hypotheses
24 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Prototypical Concept Learning Task
Given:
{ Instances X : Possible days, each described by
the attributes Sky, AirTemp, Humidity,
Wind, Water, Forecast
{ Target function c: EnjoySport : X ! f0; 1g
{ Hypotheses H : Conjunctions of literals. E.g.
h?; Cold; High; ?; ?; ?i:
{ Training examples D: Positive and negative
examples of the target function
hx1 ; c(x1 )i; : : : hxm ; c(xm )i
Determine: A hypothesis h in H such that
h(x) = c(x) for all x in D.
25 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
The inductive learning hypothesis: Any
hypothesis found to approximate the target
function well over a suciently large set of
training examples will also approximate the
target function well over other unobserved
examples.
26 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Instance, Hypotheses, and More-
General-Than
Instances X Hypotheses H
Specific
h h
x1 1 3
h
x 2
2
General
x1= <Sunny, Warm, High, Strong, Cool, Same> h 1= <Sunny, ?, ?, Strong, ?, ?>
x = <Sunny, Warm, High, Light, Warm, Same> h = <Sunny, ?, ?, ?, ?, ?>
2 2
h = <Sunny, ?, ?, ?, Cool, ?>
3
27 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Find-S Algorithm
28 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Hypothesis Space Search by Find-S
Instances X Hypotheses H
-
h0 Specific
x3
h1
h 2,3
x 1+ x+
2
x4+ h General
4
h = <∅, ∅, ∅, ∅, ∅, ∅>
0
x 1 = <Sunny Warm Normal Strong Warm Same>, + h1 = <Sunny Warm Normal Strong Warm Sam
x 2 = <Sunny Warm High Strong Warm Same>, + h2 = <Sunny Warm ? Strong Warm Same>
x 3 = <Rainy Cold High Strong Warm Change>, - h = <Sunny Warm ? Strong Warm Same>
3
x = <Sunny Warm High Strong Cool Change>, + h = <Sunny Warm ? Strong ? ? >
4 4
29 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Complaints about Find-S
30 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Version Spaces
31 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
The List-Then-Eliminate Algorithm:
32 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Example Version Space
<Sunny, ?, ?, Strong, ?, ?> <Sunny, Warm, ?, ?, ?, ?> <?, Warm, ?, Strong, ?, ?>
33 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Representing Version Spaces
34 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Candidate Elimination Algorithm
35 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
{ Remove from S any hypothesis inconsistent
with d
{ For each hypothesis g in G that is not
consistent with d
Remove g from G
Add to G all minimal specializations h of g
such that
1. h is consistent with d, and
2. some member of S is more specic than h
Remove from G any hypothesis that is less
general than another hypothesis in G
36 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Example Trace
S : {<Ø, Ø, Ø, Ø, Ø, Ø>}
0
G 0: {<?, ?, ?, ?, ?, ?>}
37 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
What Next Training Example?
<Sunny, ?, ?, Strong, ?, ?> <Sunny, Warm, ?, ?, ?, ?> <?, Warm, ?, Strong, ?, ?>
38 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
How Should These Be Classied?
<Sunny, ?, ?, Strong, ?, ?> <Sunny, Warm, ?, ?, ?, ?> <?, Warm, ?, Strong, ?, ?>
39 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
What Justies this Inductive Leap?
40 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
An UNBiased Learner
41 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Inductive Bias
Consider
concept learning algorithm L
instances X , target concept c
training examples Dc = fhx; c(x)ig
let L(xi; Dc ) denote the classication assigned to
the instance xi by L after training on data Dc.
Denition:
The inductive bias of L is any minimal set
of assertions B such that for any target
concept c and corresponding training
examples Dc
(8xi 2 X )[(B ^ Dc ^ xi) ` L(xi; Dc)]
where A ` B means A logically entails B
42 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Inductive Systems and Equivalent
Deductive Systems
Inductive system
Classification of
Training examples Candidate new instance, or
Elimination "don’t know"
Algorithm
New instance Using Hypothesis
Space H
Inductive bias
made explicit
43 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Three Learners with Dierent Biases
44 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Summary Points
45 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997