Machine Learning Notes - Lec 02 - Concept Learning
Machine Learning Notes - Lec 02 - Concept Learning
Lecture 02
Concept Learning
Reading:
Chapter 2 of Mitchell
Low (L)
High (H)
High (H) Low (L)
Normal (N)
Normal (N)
0 0 0 0 0 0 0 0 0 0 0 0 1 1 1
0 0 0 0 0 0 1 0 0 1 0 0 1 1 1
0 0 0 1 0 0 0 0 0 1 0 0 1 1 1
C1 C2 C3 C4 C29
D T BP SK
x1 N L 1
x2 L N 0
x3 N N 0
BP
H 0 0 1
N 0 0 0
L 0 0 0
L N H T
BP BP
H 0 0 0 H 0 0 0
N 0 0 0 N 0 0 0
L 0 0 0 L 0 0 0
L N H T L N H T
Class Attribute
Instance Input Attributes
Dr. Rao Muhammad Adeel Nawab 41
Representing Hypothesis
Many possible representations.
Here, Hypothesis h is a conjunction (AND) of constraints
on attributes
Each constraint can be:
A specific value : e.g. Water = Warm
A don’t care value (any of possible values): e.g. Water = ?
No value allowed (null hypothesis Ø): e.g. Water=Ø
x1 h3 h1
h2 ≥ h1 h2
x2
h2 ≥ h3 General
x1 = < Sunny, Warm, High, Strong, Cool, Same> h1 = < Sunny, ?, ?, Strong, ?, ? >
x2 = < Sunny, Warm, High, Light, Warm, Same> h2 = < Sunny, ?, ?, ?, ?, ? >
h3 = < Sunny, ?, ?, ?, Cool, ?>
List-Then Eliminate
< Sunny, ?, ?, Strong, ?, ? > < Sunny, Warm, ?, ?, ?, ? > < ?, Warm, ?, Strong, ?, ? >
G: { < ?, ?, ?, ?, ?, ? > }
G: { < ?, ?, ?, ?, ?, ? > }
x2 = < Sunny Warm High Strong Warm Same > +
S: { < Sunny Warm ? Strong Warm Same > }
G: { < ?, ?, ?, ?, ?, ? > }
Dr. Rao Muhammad Adeel Nawab 65
Example Candidate Elimination
S: { < Sunny Warm ? Strong Warm Same > }
G: { < ?, ?, ?, ?, ?, ? > }
x3 = < Rainy Cold High Strong Warm Change > -
S: {< Sunny Warm ? Strong Warm Same >}
< Sunny, ?, ?, Strong, ?, ? > < Sunny, Warm, ?, ?, ?, ?> < ?, Warm, ?, Strong, ?, ? >