Lecture 2
Lecture 2
Lecture 2:
Concept Learning
Outline
Learning from examples
General-to specific ordering of hypotheses
Version spaces and candidate elimination
algorithm
Inductive bias
Training Examples for Concept
Enjoy Sport
Concept: days on which my friend Aldo enjoys his favourite
water sports
Task: predict the value of Enjoy Sport for an arbitrary day
attributes
based on the values of the other attributes
h2=< Sunny,?,?,?,?,?>
x1 h3 h1
h2 h1 h2
x2
h2 h3 general
G: {<Sunny,?,?,?,?,?>, <?,Warm,?,?,?>, }
h consistent with d
Some member of S is more specific than h
Remove from G any hypothesis that is less general than
another hypothesis in G
Example Candidate Elimination
S: {<, , , , , >}
G: {<?, ?, ?, ?, ?, ?>}
x1 = <Sunny Warm Normal Strong Warm Same> +
G: {<?, ?, ?, ?, ?, ?>}
G: {<?, ?, ?, ?, ?, ?>}
Example Candidate Elimination
S: {< Sunny Warm ? Strong Warm Same >}
G: {<?, ?, ?, ?, ?, ?>}
G: {<Sunny,?,?,?,?,?>, <?,Warm,?,?,?> }
Example Candidate Elimination
Instance space: integer points in the x,y plane
hypothesis space : rectangles, that means hypotheses
are of the form a x b , c y d.
G: {<Sunny,?,?,?,?,?>, <?,Warm,?,?,?>, }
No Free Lunch!
Inductive Bias
Consider:
Concept learning algorithm L