Concept Learning

This talk is based on

Introduction

Learning Task

Example Sky Temp Humidity Wind Water Forecast Enjoy Sport?
1 Sunny Warm Normal Strong Warm Same Yes
2 Sunny Warm High String Warm Same Yes
3 Rainy Cold High Strong Warm Change Yes
4 Sunny Warm High Strong Cool Change Yes

Inductive Learning Hypothesis

Concept Learning as Search

Ordering of Hypotheses

Ordering Space

General To Specific

Find-S Algorithm

  1. Initialize h to the most specific hypothesis in H
  2. For each positive training instance x
    • For each attribute constraint a i in h :
      • If the constraint a i in h is satisfied by x Then do nothing
      • Else replace a i in h by the next more general constraint that is satisfied by x
  3. Output hypothesis h

Find-S Example

Ex. Sky Temp Humid Wind Water Forecast Enjoy Sport? Hypothesis
0 ∅, ∅, ∅,∅,∅,∅
1 Sunny Warm Normal Strong Warm Same Yes Sunny,Warm,Normal,Strong,Warm,Same
2 Sunny Warm High String Warm Same Yes Sunny,Warm,?,Strong,Warm,Same
3 Rainy Cold High Strong Warm Change No Sunny,Warm,?,Strong,Warm,Same
4 Sunny Warm High Strong Cool Change Yes Sunny,Warm,?,Strong,?,?
finds

Find-S Problems

Version Spaces

List-Then-Eliminate Algorithm

  1. VersionSpace a list containing every hypothesis in H
  2. For each training example, x,c(x)
    • remove from VersionSpace any hypothesis h for which h (x)c(x)
  3. Output the list of hypotheses in VersionSpace

Example of Representing Version Spaces

Version Space

Version Space Representation

Candidate Elimination Algorithm

  1. G maximally general hypotheses in H
  2. S maximally specific hypotheses in H
  3. For each training example d , do
    1. If d is a positive example then:
      1. Remove from G any hypothesis inconsistent with d
      2. For each hypothesis s in S that is not consistent with d
      3. Remove s from S
      4. Add to S all minimal generalizations h of s such that h is consistent with d , and some member of G is more general than h
      5. Remove from S any hypothesis that is more general than another hypothesis in S
    2. else if d is a negative example:
      1. Remove from S any hypothesis inconsistent with d
      2. For each hypothesis g in G that is not consistent with d
        1. Remove g from G
        2. Add to G all minimal specializations h of g such that h is consistent with d , and some member of S is more specific than h .
        3. Remove from G any hypothesis that is less general than another hypothesis in G

Candidate-Elimination Example

  1. Sunny,Warm,Normal,Strong,Warm,Same,EnjoySport=yes
  2. Sunny,Warm,High,Strong,Warm,Same,EnjoySport=yes
  3. Rainy,Cold,High,Strong,Warm,Change,EnjoySport=no
  4. Sunny,Warm,High,Strong,Cool,Change,EnjoySport=yes
S 0 :{,,,,,}
S 1 :{Sunny,Warm,Normal,Strong,Warm,Same}
S 2 , S 3 : {Sunny,Warm,?,Strong,Warm,Same}
S 4 :{Sunny,Warm,?,Strong,?,?}
G 4 :{Sunny,?,?,?,?,?,?,Warm,?,?,?,?}
G 3 :{Sunny,?,?,?,?,?,?,Warm,?,?,?,?,?,?,?,?,?,Same}
G 0 , G 1 , G 2 : {?,?,?,?,?,?}

Candidate-Elimination Summary

Partial Classification Example

Version Space

Inductive Bias

Unbiased Learner

Futility of Bias-Free Learning

Summary

URLs

  1. Machine Learning book at Amazon http://www.amazon.com/exec/obidos/ASIN/0070428077/multiagentcom/
  2. Slides by Tom Mitchell on Machine Learning http://www-2.cs.cmu.edu/~tom/mlbook-chapter-slides.html