SlideShare a Scribd company logo
1 of 61
Machine Learning Version Spaces Learning
Introduction: ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Version Spaces A  concept learning  technique based on  refining models  of the world.
Concept Learning ,[object Object],[object Object],Restaurant Meal Day Cost    Reaction Alma 3 breakfast Friday cheap Yes De Moete lunch Friday expensive No Alma 3 lunch Saturday cheap Yes Sedes breakfast Sunday cheap No Alma 3 breakfast Sunday expensive No + - + - - ,[object Object]
In general ,[object Object],[object Object],[object Object],[object Object],[object Object],Restaurant Meal Day Cost    3  X  3  X  7  X  2  =  126 Reaction:   Restaurant X Meal X Day X Cost  -->  Bool Find an inductive ‘guess’ of the concept, that covers all the examples !
Pictured: Set of all possible events                                   Given some  examples: + + + + - - - - Find a concept that covers all the positive  examples and none of the negative ones!
Non-determinism ,[object Object],[object Object],Set of all possible events                                   + + + + - - - -
An obvious, but bad choice: ,[object Object],[object Object],[object Object],[object Object],Restaurant Meal Day Cost    Reaction Alma 3 breakfast Friday cheap Yes De Moete lunch Friday expensive No Alma 3 lunch Saturday cheap Yes Sedes breakfast Sunday cheap No Alma 3 breakfast Sunday expensive No - - - + +
Pictured: ,[object Object],Set of all possible events + + + + - - - -                                  
Equally bad is: ,[object Object],[object Object],[object Object],[object Object],Restaurant Meal Day Cost    Reaction Alma 3 breakfast Friday cheap Yes De Moete lunch Friday expensive No Alma 3 lunch Saturday cheap Yes Sedes breakfast Sunday cheap No Alma 3 breakfast Sunday expensive No + - + - -
Pictured: ,[object Object],Set of all possible events                                   + + + + - - - -
Solution:  fix a language of hypotheses: ,[object Object],= hypothesis space ,[object Object],[object Object],[object Object]
Reaction - Example: Restaurant Meal Day Cost    Reaction Alma 3 breakfast Friday cheap Yes De Moete lunch Friday expensive No Alma 3 lunch Saturday cheap Yes Sedes breakfast Sunday cheap No Alma 3 breakfast Sunday expensive No + - + - - ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Hypotheses relate to  sets of possible events        Events    x2      x1 x1 =  <  Alma 3, lunch, Monday, expensive> x2 = < Sedes, lunch, Sunday, cheap> h1  = [?, lunch, Monday, ?] h2  = [?, lunch, ?, cheap] h3  = [?, lunch, ?, ?] General Specific                 Hypotheses h2 h3 h1
Expressive power of this hypothesis language: ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Other languages of hypotheses are allowed ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],any_color mono_color polyo_color red   blue  green   orange   purple 
Important about hypothesis languages: ,[object Object]
Defining Concept Learning: ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The inductive learning hypothesis: If  a hypothesis approximates the target function well  over a sufficiently large number of examples , then  the hypothesis will also approximate the  target function well  on other unobserved examples .
Find-S: a naïve algorithm Replace  h  by a minimal generalization of  h  that covers  x Return   h Initialize :  h :=   For  each  positive  training example  x  in  D   Do: If   h  does  not  cover  x :
Reaction example: minimal generalizations = the individual events Generalization = replace something by ? no more positive examples: return  h Restaurant Meal Day Cost    Reaction Alma 3 breakfast Friday cheap Yes De Moete lunch Friday expensive No Alma 3 lunch Saturday cheap Yes Sedes breakfast Sunday cheap No Alma 3 breakfast Sunday expensive No + - + - - Initially: h =   Example 1: h =  [Alma 3,breakfast,Friday,cheap]  Example 2: h =  [Alma 3,  ? ,  ? ,cheap] 
Properties of Find-S ,[object Object],[object Object],Beth Jo Alex Hacker Scientist Footballplayer  H Beth can be minimally generalized in 2 ways to include a new example Jo.
Properties of Find-S (2) ,[object Object],D : Beth Alex Jo + - + Beth Jo Alex Hacker Scientist Footballplayer  H Is a wrong solution
Properties of Find-S (3) ,[object Object],[object Object],D : Beth Jo  Beth + + - D : Beth Alex  Jo + - + Jo Alex Scientist  H Beth
Nice about Find-S: ,[object Object],If  h  already covered the 20 first examples,  then  h’  will as well h        X H ,[object Object], h’   
Dual Find-S: Initialize :  h :=  [ ?, ?, .., ?] For  each  negative  training example  x  in  D   Do: If   h  does cover  x : Replace  h  by a minimal specialization of  h  that does  not  cover  x Return   h
Reaction example: Restaurant Meal Day Cost    Reaction Alma 3 breakfast Friday cheap Yes De Moete lunch Friday expensive No Alma 3 lunch Saturday cheap Yes Sedes breakfast Sunday cheap No Alma 3 breakfast Sunday expensive No + - + - - Initially: h = [ ?, ?, ?, ?] Example 1:  h= [ ?, breakfast, ?, ?] Example 2:  h= [ Alma 3, breakfast, ?, ?] Example 3:  h= [ Alma 3, breakfast, ?, cheap]
Version Spaces: the idea:  ,[object Object],[object Object],[object Object],[object Object]
Version spaces: initialization ,[object Object],G = { [ ?, ?, …, ?] } S = {    }
Negative examples: ,[object Object],Invariant : only the hypotheses  more specific  than the  ones of  G  are still possible:   they don’t cover the negative example S = {    }  G = { [ ?, ?, …, ?] } G = {h1, h2, …, hn}
Positive examples: ,[object Object],Invariant : only the hypotheses  more general  than the  ones of  S  are still possible:   they do cover the positive example G = {h1, h2, …, hn} S = {    } S = { h1’, h2’, …,hm’  }
Later: negative examples ,[object Object],Invariant : only the hypotheses  more specific  than the  ones of  G  are still possible:   they don’t cover the negative example S = { h1’, h2’, …,hm’  }  G = {h1, h2, …, hn} G = {h1, h21, h22, …, hn}
Later: positive examples ,[object Object],Invariant : only the hypotheses  more general  than the  ones of  S  are still possible:   they do cover the positive example G = {h1, h21, h22, …, hn} S = { h1’, h2’, …,hm’  }  S = { h11’, h12’, h13’, h2’, …,hm’  }
Optimization: negative: ,[object Object],…  are more general than ... G = {h1, h21, …, hn} S = { h1’, h2’, …,hm’  }  Invariant : on  S  used !
Optimization: positive: ,[object Object],…  are more specific than ... Invariant : on  G  used ! G = {h1, h21, h22, …, hn} S = { h13’, h2’, …,hm’  }
Pruning: negative examples  ,[object Object],G = {h1, h21, …, hn} S = { h1’, h3’, …,hm’  }  Invariant  only works for the previous examples, not the last one Cover the last negative example!
Pruning: positive examples  ,[object Object],G = {h1, h21, …, hn} S = { h1’, h3’, …,hm’  }  Don’t cover the last positive example
Eliminate redundant hypotheses ,[object Object],More specific than another general hypothesis Obviously also for  S  ! G = {h1, h21, …, hn} S = { h1’, h3’, …,hm’  }  Reason:   Invariant acts as a wave front : anything above  G  is not allowed. The most general elements of  G  define the real boundary
Convergence: ,[object Object],[object Object],G = {h1, h21, h22, …, hn} S = { h13’, h2’, …,hm’  }
Reaction example ,[object Object],[ ?, ?, ?, ?] Most general  Most specific
Alma3,  breakfast,  Friday,  cheap:  + ,[object Object],[ ?, ?, ?, ?]  [Alma3, breakfast, Friday, cheap]
DeMoete,  lunch,  Friday,  expensive:  - ,[object Object],[object Object],[ Alma3 , ?, ?, ?] [ DeMoete , ?, ?, ?]  [ Sedes , ?, ?, ?] [?,  breakfast , ?, ?] [?,  lunch , ?, ?] [?,  dinner , ?, ?] [?, ?,  Monday , ?] [?, ?,  Tuesday , ?] [?, ?,  Wednesday , ?] [?, ?,  Thursday , ?] [?, ?,  Friday , ?] [?, ?,  Saturday , ?] [?, ?,  Sunday , ?] [?, ?, ?,  cheap ] [?, ?, ?,  expensive ] Matches the negative example X X X X Does not generalize the specific model Specific model: [Alma3, breakfast, Friday, cheap] X X X X X X X X Remain !
Result after example 2: [ ?, ?, ?, ?]  [Alma3, breakfast, Friday, cheap] [ Alma3 , ?, ?, ?] [?,  breakfast , ?, ?] [?, ?, ?,  cheap ]
Alma3,  lunch,  Saturday,  cheap:  + ,[object Object],[Alma3, breakfast, Friday, cheap] [Alma3, ?, ?, ?] [?, breakfast, ?, ?] [?, ?, ?, cheap] [Alma3, ? , ? , cheap] does not match new example
Sedes,  breakfast,  Sunday,  cheap:  - ,[object Object],The only specialization that is introduced is  pruned, because it is more specific than  another general hypothesis [Alma3, ?, ?, ?] [?, ?, ?, cheap] [Alma3, ? , ? , cheap] [ Alma3 , ?, ?, cheap]
Alma 3,  breakfast,  Sunday,  expensive:  - ,[object Object],Cheap food at Alma3 produces the allergy ! [Alma3, ?, ?, ?] [Alma3, ? , ? , cheap] [Alma3, ?, ?,  cheap ] Same hypothesis !!!
Version Space Algorithm: Generalize  all hypotheses in  S  that do not cover the    example yet, but ensure the following:   - Only introduce  minimal changes  on the hypotheses.   -  Each  new specific hypothesis is a  specialization of   some general hypothesis .   -  No  new specific hypothesis is a  generalization of   some other specific hypothesis . Prune away  all hypotheses in  G  that do not cover the   example. Initially :  G := { the hypothesis that covers everything}   S := {  } For each new  positive  example:
Version Space Algorithm (2): Specialize  all hypotheses in  G  that cover the example,    but ensure the following:   - Only introduce  minimal changes  on the hypotheses.   -  Each  new general hypothesis is a  generalization of   some specific hypothesis .   -  No  new general hypothesis is a  specialization of   some other general hypothesis . Prune away  all hypotheses in  S  that cover the example. Until there are no more examples:   report  S  and  G OR  S  or  G  become empty :  report failure . . . For each new  negative  example:
Properties of VS: ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Termination: ,[object Object],Then  all these hypotheses , and  all intermediate hypotheses , are still correct descriptions covering the test data. ,[object Object],[Alma3, ?, ?, ?] [?, ?, Monday,?] [Alma3, ?, Monday, cheap] [Alma3, ?, ?, cheap] [?, ?, Monday, cheap] [Alma3, ?, Monday, ?] VS makes NO unnecessary choices !
Termination (2): ,[object Object],[object Object],[object Object],[object Object],[Alma3, breakfast, ?, cheap]    [Alma3, lunch, ?, cheap] <Alma3, dinner, Sunday, cheap>  - <Alma3, breakfast, Sunday, cheap>  + <Alma3, lunch, Sunday, cheap>  + ,[object Object],[object Object],[object Object],[object Object]
Which example next? ,[object Object],[object Object],[object Object],<Alma3,lunch,Monday, expensive >   [Alma3, ?, ?, ?] [?, ?, Monday,?] [Alma3, ?, Monday, cheap] [Alma3, ?, ?, cheap] [?, ?, Monday, cheap] [Alma3, ?, Monday, ?] classified negative by 3 hypotheses classified positive by 3 hypotheses is the most informative new example
Use of partially learned concepts: ,[object Object],[Alma3, ?, ?, ?] [?, ?, Monday,?] [Alma3, ?, Monday, cheap] [Alma3, ?, ?, cheap] [?, ?, Monday, cheap] [Alma3, ?, Monday, ?] ,[object Object],[object Object],[object Object]
Use of partially learned concepts (2): ,[object Object],[Alma3, ?, ?, ?] [?, ?, Monday,?] [Alma3, ?, Monday, cheap] [Alma3, ?, ?, cheap] [?, ?, Monday, cheap] [Alma3, ?, Monday, ?] ,[object Object],[object Object],[object Object]
Use of partially learned concepts (3): ,[object Object],[Alma3, ?, ?, ?] [?, ?, Monday,?] [Alma3, ?, Monday, cheap] [Alma3, ?, ?, cheap] [?, ?, Monday, cheap] [Alma3, ?, Monday, ?] ,[object Object],[object Object],[object Object]
Use of partially learned concepts (4): ,[object Object],[Alma3, ?, ?, ?] [?, ?, Monday,?] [Alma3, ?, Monday, cheap] [Alma3, ?, ?, cheap] [?, ?, Monday, cheap] [Alma3, ?, Monday, ?] probably does not belong to the concept : ratio : 1/6 ,[object Object],[object Object]
The relevance of inductive BIAS: choosing H ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Inductive BIAS (2): ,[object Object],[object Object],[object Object],Restaurant Meal Day Cost    3  X  3  X  7  X  2  =  126
Inductive BIAS (3) ,[object Object],Restaurant Meal Day Cost    Reaction Alma 3 breakfast Friday cheap Yes De Moete lunch Friday expensive No Alma 3 lunch Saturday cheap Yes Sedes breakfast Sunday cheap No Alma 3 breakfast Sunday expensive No + - + - - ?  {~[DeMoete. Lunch, Friday, expensive]    ~[Sedes, breakfast, Sunday, cheap]} {~[DeMoete. Lunch, Friday, expensive]    ~[Sedes, breakfast, Sunday, cheap]      ~[Alma 3, breakfast, Sunday, expensive]} {~[DeMoete. Lunch, Friday, expensive]} {[Alma 3, breakfast, Friday, cheap]   [Alma 3, lunch, Saturday, cheap]} {[Alma 3, breakfast, Friday, cheap]}
Inductive BIAS (3) ,[object Object],[object Object],[object Object],G = {~[DeMoete. Lunch, Friday, expensive]     ~[Sedes, breakfast, Sunday, cheap]    ~[Alma 3, breakfast, Sunday, expensive]} S = {[Alma 3, breakfast, Friday, cheap]    [Alma 3, lunch, Saturday, cheap]} ,[object Object],[object Object]
Shift of Bias ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

More Related Content

Viewers also liked

ICF - EE in HOME Workshop
ICF - EE in HOME WorkshopICF - EE in HOME Workshop
ICF - EE in HOME Workshop
ICF_HCD
 
D2.3.1 Evaluation results of the LinkedUp Veni competition
D2.3.1 Evaluation results of the LinkedUp Veni competitionD2.3.1 Evaluation results of the LinkedUp Veni competition
D2.3.1 Evaluation results of the LinkedUp Veni competition
Hendrik Drachsler
 
Cisco routingtable2 lookup
Cisco routingtable2 lookupCisco routingtable2 lookup
Cisco routingtable2 lookup
Makram Ghazzaoui
 
Product Development at the Smithsonian Libraries
Product Development at the Smithsonian LibrariesProduct Development at the Smithsonian Libraries
Product Development at the Smithsonian Libraries
eclemrush
 
Winners of HTML5 BYOG - InGDIn
Winners of HTML5 BYOG - InGDInWinners of HTML5 BYOG - InGDIn
Winners of HTML5 BYOG - InGDIn
Kinshuk Sunil
 

Viewers also liked (20)

ICF - EE in HOME Workshop
ICF - EE in HOME WorkshopICF - EE in HOME Workshop
ICF - EE in HOME Workshop
 
Unit 2.5
Unit 2.5Unit 2.5
Unit 2.5
 
Unit 1.1 Introduction to Programming
Unit 1.1 Introduction to Programming Unit 1.1 Introduction to Programming
Unit 1.1 Introduction to Programming
 
Addict Wipii English 081128
Addict Wipii English 081128Addict Wipii English 081128
Addict Wipii English 081128
 
D2.3.1 Evaluation results of the LinkedUp Veni competition
D2.3.1 Evaluation results of the LinkedUp Veni competitionD2.3.1 Evaluation results of the LinkedUp Veni competition
D2.3.1 Evaluation results of the LinkedUp Veni competition
 
Mwomen
MwomenMwomen
Mwomen
 
Cisco routingtable2 lookup
Cisco routingtable2 lookupCisco routingtable2 lookup
Cisco routingtable2 lookup
 
Product Development at the Smithsonian Libraries
Product Development at the Smithsonian LibrariesProduct Development at the Smithsonian Libraries
Product Development at the Smithsonian Libraries
 
A Long Walk to Water - Lssn 14
A Long Walk to Water - Lssn 14A Long Walk to Water - Lssn 14
A Long Walk to Water - Lssn 14
 
Winners of HTML5 BYOG - InGDIn
Winners of HTML5 BYOG - InGDInWinners of HTML5 BYOG - InGDIn
Winners of HTML5 BYOG - InGDIn
 
Inbound Marketing Explained
Inbound Marketing ExplainedInbound Marketing Explained
Inbound Marketing Explained
 
Unit 2.12
Unit 2.12Unit 2.12
Unit 2.12
 
Language learning and teaching through social media
Language learning and teaching through social mediaLanguage learning and teaching through social media
Language learning and teaching through social media
 
Corel
CorelCorel
Corel
 
Adriano Augusto Michieli, Enrico Stanley, Genova, Formiggini, 1913
Adriano Augusto Michieli, Enrico Stanley, Genova, Formiggini, 1913Adriano Augusto Michieli, Enrico Stanley, Genova, Formiggini, 1913
Adriano Augusto Michieli, Enrico Stanley, Genova, Formiggini, 1913
 
M02 un09 p01
M02 un09 p01M02 un09 p01
M02 un09 p01
 
JISC Greening ICT Keynote Presentation
JISC Greening ICT Keynote PresentationJISC Greening ICT Keynote Presentation
JISC Greening ICT Keynote Presentation
 
Resourcing the digital learner
Resourcing the digital learnerResourcing the digital learner
Resourcing the digital learner
 
The changing landscape, a personal view for OER Wales
The changing landscape, a personal view for OER WalesThe changing landscape, a personal view for OER Wales
The changing landscape, a personal view for OER Wales
 
12 13 Initiative: Breakout Session OHIONET Annual Meeting 2009
12 13 Initiative: Breakout Session OHIONET Annual Meeting 200912 13 Initiative: Breakout Session OHIONET Annual Meeting 2009
12 13 Initiative: Breakout Session OHIONET Annual Meeting 2009
 

Similar to Version spaces (11)

concept-learning.ppt
concept-learning.pptconcept-learning.ppt
concept-learning.ppt
 
concept-learning of artificial intelligence
concept-learning of artificial intelligenceconcept-learning of artificial intelligence
concept-learning of artificial intelligence
 
ML_Unit_1_Part_B
ML_Unit_1_Part_BML_Unit_1_Part_B
ML_Unit_1_Part_B
 
Concept learning and candidate elimination algorithm
Concept learning and candidate elimination algorithmConcept learning and candidate elimination algorithm
Concept learning and candidate elimination algorithm
 
Lecture 7
Lecture 7Lecture 7
Lecture 7
 
Lecture 7
Lecture 7Lecture 7
Lecture 7
 
Lec 17
Lec  17Lec  17
Lec 17
 
artificial intelligence.pptx
artificial intelligence.pptxartificial intelligence.pptx
artificial intelligence.pptx
 
Cs229 notes4
Cs229 notes4Cs229 notes4
Cs229 notes4
 
Bayesian Learning- part of machine learning
Bayesian Learning-  part of machine learningBayesian Learning-  part of machine learning
Bayesian Learning- part of machine learning
 
ML02.ppt
ML02.pptML02.ppt
ML02.ppt
 

Recently uploaded

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 

Version spaces

  • 1. Machine Learning Version Spaces Learning
  • 2.
  • 3. Version Spaces A concept learning technique based on refining models of the world.
  • 4.
  • 5.
  • 6. Pictured: Set of all possible events                                   Given some examples: + + + + - - - - Find a concept that covers all the positive examples and none of the negative ones!
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14. Hypotheses relate to sets of possible events       Events    x2      x1 x1 = < Alma 3, lunch, Monday, expensive> x2 = < Sedes, lunch, Sunday, cheap> h1 = [?, lunch, Monday, ?] h2 = [?, lunch, ?, cheap] h3 = [?, lunch, ?, ?] General Specific                 Hypotheses h2 h3 h1
  • 15.
  • 16.
  • 17.
  • 18.
  • 19. The inductive learning hypothesis: If a hypothesis approximates the target function well over a sufficiently large number of examples , then the hypothesis will also approximate the target function well on other unobserved examples .
  • 20. Find-S: a naïve algorithm Replace h by a minimal generalization of h that covers x Return h Initialize : h :=  For each positive training example x in D Do: If h does not cover x :
  • 21. Reaction example: minimal generalizations = the individual events Generalization = replace something by ? no more positive examples: return h Restaurant Meal Day Cost Reaction Alma 3 breakfast Friday cheap Yes De Moete lunch Friday expensive No Alma 3 lunch Saturday cheap Yes Sedes breakfast Sunday cheap No Alma 3 breakfast Sunday expensive No + - + - - Initially: h =  Example 1: h = [Alma 3,breakfast,Friday,cheap]  Example 2: h = [Alma 3, ? , ? ,cheap] 
  • 22.
  • 23.
  • 24.
  • 25.
  • 26. Dual Find-S: Initialize : h := [ ?, ?, .., ?] For each negative training example x in D Do: If h does cover x : Replace h by a minimal specialization of h that does not cover x Return h
  • 27. Reaction example: Restaurant Meal Day Cost Reaction Alma 3 breakfast Friday cheap Yes De Moete lunch Friday expensive No Alma 3 lunch Saturday cheap Yes Sedes breakfast Sunday cheap No Alma 3 breakfast Sunday expensive No + - + - - Initially: h = [ ?, ?, ?, ?] Example 1:  h= [ ?, breakfast, ?, ?] Example 2:  h= [ Alma 3, breakfast, ?, ?] Example 3:  h= [ Alma 3, breakfast, ?, cheap]
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43. Result after example 2: [ ?, ?, ?, ?]  [Alma3, breakfast, Friday, cheap] [ Alma3 , ?, ?, ?] [?, breakfast , ?, ?] [?, ?, ?, cheap ]
  • 44.
  • 45.
  • 46.
  • 47. Version Space Algorithm: Generalize all hypotheses in S that do not cover the example yet, but ensure the following: - Only introduce minimal changes on the hypotheses. - Each new specific hypothesis is a specialization of some general hypothesis . - No new specific hypothesis is a generalization of some other specific hypothesis . Prune away all hypotheses in G that do not cover the example. Initially : G := { the hypothesis that covers everything} S := {  } For each new positive example:
  • 48. Version Space Algorithm (2): Specialize all hypotheses in G that cover the example, but ensure the following: - Only introduce minimal changes on the hypotheses. - Each new general hypothesis is a generalization of some specific hypothesis . - No new general hypothesis is a specialization of some other general hypothesis . Prune away all hypotheses in S that cover the example. Until there are no more examples: report S and G OR S or G become empty : report failure . . . For each new negative example:
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58.
  • 59.
  • 60.
  • 61.