Chapter 2 Concept Learning

Slides:



Advertisements
Similar presentations
Concept Learning and the General-to-Specific Ordering
Advertisements

2. Concept Learning 2.1 Introduction
Concept Learning DefinitionsDefinitions Search Space and General-Specific OrderingSearch Space and General-Specific Ordering The Candidate Elimination.
CS 484 – Artificial Intelligence1 Announcements Project 1 is due Tuesday, October 16 Send me the name of your konane bot Midterm is Thursday, October 18.
Università di Milano-Bicocca Laurea Magistrale in Informatica
Adapted by Doug Downey from: Bryan Pardo, EECS 349 Fall 2007 Machine Learning Lecture 2: Concept Learning and Version Spaces 1.
Chapter 2 - Concept learning
Machine Learning: Symbol-Based
MACHINE LEARNING. What is learning? A computer program learns if it improves its performance at some task through experience (T. Mitchell, 1997) A computer.
Concept Learning and Version Spaces
CS Bayesian Learning1 Bayesian Learning. CS Bayesian Learning2 States, causes, hypotheses. Observations, effect, data. We need to reconcile.
Artificial Intelligence 6. Machine Learning, Version Space Method
Kansas State University Department of Computing and Information Sciences CIS 830: Advanced Topics in Artificial Intelligence Wednesday, January 19, 2001.
Computing & Information Sciences Kansas State University Lecture 01 of 42 Wednesday, 24 January 2008 William H. Hsu Department of Computing and Information.
Kansas State University Department of Computing and Information Sciences CIS 732: Machine Learning and Pattern Recognition Friday, 25 January 2008 William.
Machine Learning Version Spaces Learning. 2  Neural Net approaches  Symbolic approaches:  version spaces  decision trees  knowledge discovery  data.
CS 484 – Artificial Intelligence1 Announcements List of 5 source for research paper Homework 5 due Tuesday, October 30 Book Review due Tuesday, October.
CS 478 – Tools for Machine Learning and Data Mining The Need for and Role of Bias.
For Friday Read chapter 18, sections 3-4 Homework: –Chapter 14, exercise 12 a, b, d.
1 Machine Learning What is learning?. 2 Machine Learning What is learning? “That is what learning is. You suddenly understand something you've understood.
Machine Learning Chapter 11.
Machine Learning CSE 681 CH2 - Supervised Learning.
General-to-Specific Ordering. 8/29/03Logic Based Classification2 SkyAirTempHumidityWindWaterForecastEnjoySport SunnyWarmNormalStrongWarmSameYes SunnyWarmHighStrongWarmSameYes.
1 Concept Learning By Dong Xu State Key Lab of CAD&CG, ZJU.
机器学习 陈昱 北京大学计算机科学技术研究所 信息安全工程研究中心. 课程基本信息  主讲教师:陈昱 Tel :  助教:程再兴, Tel :  课程网页:
Machine Learning Chapter 2. Concept Learning and The General-to-specific Ordering Tom M. Mitchell.
Kansas State University Department of Computing and Information Sciences CIS 830: Advanced Topics in Artificial Intelligence Monday, January 22, 2001 William.
Chapter 2: Concept Learning and the General-to-Specific Ordering.
CpSc 810: Machine Learning Concept Learning and General to Specific Ordering.
Concept Learning and the General-to-Specific Ordering 이 종우 자연언어처리연구실.
Outline Inductive bias General-to specific ordering of hypotheses
Overview Concept Learning Representation Inductive Learning Hypothesis
CS Machine Learning 15 Jan Inductive Classification.
START OF DAY 1 Reading: Chap. 1 & 2. Introduction.
CS 5751 Machine Learning Chapter 3 Decision Tree Learning1 Decision Trees Decision tree representation ID3 learning algorithm Entropy, Information gain.
1 Universidad de Buenos Aires Maestría en Data Mining y Knowledge Discovery Aprendizaje Automático 2-Concept Learning (1/3) Eduardo Poggi
Kansas State University Department of Computing and Information Sciences CIS 798: Intelligent Systems and Machine Learning Thursday, August 26, 1999 William.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 34 of 41 Wednesday, 10.
Machine Learning: Lecture 2
Machine Learning Concept Learning General-to Specific Ordering
Kansas State University Department of Computing and Information Sciences CIS 690: Implementation of High-Performance Data Mining Systems Thursday, 20 May.
CS 8751 ML & KDDComputational Learning Theory1 Notions of interest: efficiency, accuracy, complexity Probably, Approximately Correct (PAC) Learning Agnostic.
CS464 Introduction to Machine Learning1 Concept Learning Inducing general functions from specific training examples is a main issue of machine learning.
Concept Learning and The General-To Specific Ordering
Computational Learning Theory Part 1: Preliminaries 1.
Concept learning Maria Simi, 2011/2012 Machine Learning, Tom Mitchell Mc Graw-Hill International Editions, 1997 (Cap 1, 2).
Machine Learning Chapter 7. Computational Learning Theory Tom M. Mitchell.
1 CS 391L: Machine Learning: Computational Learning Theory Raymond J. Mooney University of Texas at Austin.
CS 9633 Machine Learning Explanation Based Learning
Computational Learning Theory
Concept Learning Machine Learning by T. Mitchell (McGraw-Hill) Chp. 2
CSE543: Machine Learning Lecture 2: August 6, 2014
CS 9633 Machine Learning Concept Learning
Analytical Learning Discussion (4 of 4):
Machine Learning Chapter 2
Ordering of Hypothesis Space
Version Spaces Learning
Concept Learning.
Instance Space (X) X T BP SK x1 L - x2 N x3 H x4 x5 x6 x7 x8 x9.
IES 511 Machine Learning Dr. Türker İnce (Lecture notes by Prof. T. M
Machine Learning: Lecture 6
Concept Learning Berlin Chen 2005 References:
Machine Learning: UNIT-3 CHAPTER-1
Machine Learning Chapter 2
Inductive Learning (2/2) Version Space and PAC Learning
Implementation of Learning Systems
Version Space Machine Learning Fall 2018.
Machine Learning Chapter 2
Presentation transcript:

Chapter 2 Concept Learning Learning from examples General-to-specific ordering over hypotheses Version Spaces and candidate elimination algorithm Picking new examples The need for inductive bias CS 5751 Machine Learning Chapter 2 Concept Learning

Some Examples for SmileyFaces CS 5751 Machine Learning Chapter 2 Concept Learning

Features from Computer View CS 5751 Machine Learning Chapter 2 Concept Learning

Representing Hypotheses Many possible representations for hypotheses h Idea: h as conjunctions of constraints on features Each constraint can be: a specific value (e.g., Nose = Square) don’t care (e.g., Eyes = ?) no value allowed (e.g., Water=Ø) For example, Eyes Nose Head Fcolor Hair? <Round, ?, Round, ?, No> CS 5751 Machine Learning Chapter 2 Concept Learning

Prototypical Concept Learning Task Given: Instances X: Faces, each described by the attributes Eyes, Nose, Head, Fcolor, and Hair? Target function c: Smile? : X -> { no, yes } Hypotheses H: Conjunctions of literals such as <?,Square,Square,Yellow,?> Training examples D: Positive and negative examples of the target function Determine: a hypothesis h in H such that h(x)=c(x) for all x in D. CS 5751 Machine Learning Chapter 2 Concept Learning

Inductive Learning Hypothesis Any hypothesis found to approximate the target function well over a sufficiently large set of training examples will also approximate the target function well over other unobserved examples. What are the implications? Is this reasonable? What (if any) are our alternatives? What about concept drift (what if our views/tastes change over time)? CS 5751 Machine Learning Chapter 2 Concept Learning

Instances, Hypotheses, and More-General-Than CS 5751 Machine Learning Chapter 2 Concept Learning

Chapter 2 Concept Learning Find-S Algorithm 1. Initialize h to the most specific hypothesis in H 2. For each positive training instance x For each attribute constraint ai in h IF the constraint ai in h is satisfied by x THEN do nothing ELSE replace ai in h by next more general constraint satisfied by x 3. Output hypothesis h CS 5751 Machine Learning Chapter 2 Concept Learning

Hypothesis Space Search by Find-S CS 5751 Machine Learning Chapter 2 Concept Learning

Complaints about Find-S Cannot tell whether it has learned concept Cannot tell when training data inconsistent Picks a maximally specific h (why?) Depending on H, there might be several! How do we fix this? CS 5751 Machine Learning Chapter 2 Concept Learning

The List-Then-Eliminate Algorithm 1. Set VersionSpace equal to 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 But is listing all hypotheses reasonable? How many different hypotheses in our simple problem? How many not involving “?” terms? CS 5751 Machine Learning Chapter 2 Concept Learning

Chapter 2 Concept Learning Version Spaces A hypothesis h is consistent with a set of training examples D of target concept c if and only if h(x)=c(x) for each training example in D. The version space, VSH,D, with respect to hypothesis space H and training examples D, is the subset of hypotheses from H consistent with all training examples in D. CS 5751 Machine Learning Chapter 2 Concept Learning

Chapter 2 Concept Learning Example Version Space G: { <?,?,Round,?,?> <?,Triangle,?,?,?> } <?,?,Round,?,Yes> <?,Triangle,Round,?,?> <?,Triangle,?,?,Yes> S: { <?,Triangle,Round,?,Yes> } CS 5751 Machine Learning Chapter 2 Concept Learning

Representing Version Spaces The General boundary, G, of version space VSH,D is the set of its maximally general members. The Specific boundary, S, of version space VSH,D is the set of its maximally specific members. Every member of the version space lies between these boundaries CS 5751 Machine Learning Chapter 2 Concept Learning

Candidate Elimination Algorithm G = maximally general hypotheses in H S = maximally specific hypotheses in H For each training example d, do If d is a positive example Remove from G any hypothesis that does not include d For each hypothesis s in S that does not include d Remove s from S Add to S all minimal generalizations h of s such that 1. h includes d, and 2. Some member of G is more general than h Remove from S any hypothesis that is more general than another hypothesis in S CS 5751 Machine Learning Chapter 2 Concept Learning

Candidate Elimination Algorithm (cont) For each training example d, do (cont) If d is a negative example Remove from S any hypothesis that does include d For each hypothesis g in G that does include d Remove g from G Add to G all minimal generalizations h of g such that 1. h does not include d, and 2. Some member of S is more specific than h Remove from G any hypothesis that is less general than another hypothesis in G If G or S ever becomes empty, data not consistent (with H) CS 5751 Machine Learning Chapter 2 Concept Learning

Chapter 2 Concept Learning Example Trace X1=<R,T,R,P,Y> + S1: { <R,T,R,P,Y> } G1 S0: { <Ø,Ø,Ø,Ø,Ø> } G0: { <?,?,?,?,?> } X2=<S,S,S,G,Y> - G2: { <R,?,?,?,?>, <?,T,?,?,?>, <?,?,R,?,?>, <?,?,?,P,?> } S2 X3=<S,T,R,Y,Y> + S3: { <?,T,R,?,Y> } G3 X4=<R,T,R,G,N> - G4: { <?,T,?,?,Y>, <?,?,R,?,Y> } S4 X5=<S,S,R,Y,Y> + S5: { <?,?,R,?,Y> } G5 CS 5751 Machine Learning Chapter 2 Concept Learning

What Training Example Next? G: { <?,?,Round,?,?> <?,Triangle,?,?,?> } <?,?,Round,?,Yes> <?,Triangle,Round,?,?> <?,Triangle,?,?,Yes> S: { <?,Triangle,Round,?,Yes> } CS 5751 Machine Learning Chapter 2 Concept Learning

How Should These Be Classified? S: { <?,Triangle,Round,?,Yes> } G: { <?,?,Round,?,?> <?,Triangle,?,?,?> } <?,?,Round,?,Yes> <?,Triangle,?,?,Yes> <?,Triangle,Round,?,?> CS 5751 Machine Learning Chapter 2 Concept Learning

What Justifies this Inductive Leap? + < Round, Triangle, Round, Purple, Yes > + < Square, Triangle, Round, Yellow, Yes > S: < ?, Triangle, Round, ?, Yes > Why believe we can classify the unseen? < Square, Triangle, Round, Purple, Yes > ? CS 5751 Machine Learning Chapter 2 Concept Learning

Chapter 2 Concept Learning An UN-Biased Learner Idea: Choose H that expresses every teachable concept (i.e., H is the power set of X) Consider H’ = disjunctions, conjunctions, negations over previous H. For example: What are S, G, in this case? CS 5751 Machine Learning Chapter 2 Concept Learning

Chapter 2 Concept Learning Inductive Bias Consider concept learning algorithm L instances X, target concept c training examples Dc={<x,c(x)>} let L(xi,Dc) denote the classification assigned to the instance xi by L after training on data Dc. Definition: The inductive bias of L is any minimal set of assertions B such that for any target concept c and corresponding training examples Dc where A B means A logically entails B CS 5751 Machine Learning Chapter 2 Concept Learning

Inductive Systems and Equivalent Deductive Systems CS 5751 Machine Learning Chapter 2 Concept Learning

Three Learners with Different Biases 1. Rote learner: store examples, classify new instance iff it matches previously observed example (don’t know otherwise). 2. Version space candidate elimination algorithm. 3. Find-S CS 5751 Machine Learning Chapter 2 Concept Learning

Chapter 2 Concept Learning Summary Points 1. Concept learning as search through H 2. General-to-specific ordering over H 3. Version space candidate elimination algorithm 4. S and G boundaries characterize learner’s uncertainty 5. Learner can generate useful queries 6. Inductive leaps possible only if learner is biased 7. Inductive learners can be modeled by equivalent deductive systems CS 5751 Machine Learning Chapter 2 Concept Learning