Machine Learning Concept Learning General-to Specific Ordering

Slides:



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

2. Concept Learning 2.1 Introduction
1 Machine Learning: Lecture 3 Decision Tree Learning (Based on Chapter 3 of Mitchell T.., Machine Learning, 1997)
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
CS 391L: Machine Learning: Inductive Classification
Decision Trees. DEFINE: Set X of Instances (of n-tuples x = ) –E.g., days decribed by attributes (or features): Sky, Temp, Humidity, Wind, Water, Forecast.
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
Part I: Classification and Bayesian Learning
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.
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 Monday Read chapter 18, sections 5-6 Homework: –Chapter 18, exercises 1-2.
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.
Machine Learning Chapter 2. Concept Learning and The General-to-specific Ordering Gun Ho Lee Soongsil University, Seoul.
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.
Machine Learning Chapter 5. Artificial IntelligenceChapter 52 Learning 1. Rote learning rote( โรท ) n. วิถีทาง, ทางเดิน, วิธีการตามปกติ, (by rote จากความทรงจำ.
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
Computational Learning Theory IntroductionIntroduction The PAC Learning FrameworkThe PAC Learning Framework Finite Hypothesis SpacesFinite Hypothesis Spaces.
CS Machine Learning 15 Jan Inductive Classification.
1 Inductive Learning (continued) Chapter 19 Slides for Ch. 19 by J.C. Latombe.
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
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.
MACHINE LEARNING 3. Supervised Learning. Learning a Class from Examples Based on E Alpaydın 2004 Introduction to Machine Learning © The MIT Press (V1.1)
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.
Chapter 2 Concept Learning
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
Inductive Classification
Version Spaces Learning
Concept Learning.
IES 511 Machine Learning Dr. Türker İnce (Lecture notes by Prof. T. M
Concept Learning Berlin Chen 2005 References:
Machine Learning Chapter 2
Implementation of Learning Systems
Version Space Machine Learning Fall 2018.
Machine Learning Chapter 2
Presentation transcript:

Machine Learning Concept Learning General-to Specific Ordering (Inductive Classification)

Note Simple approach Assumption: no noise Illustrates key concepts

Concept learning task Concept learning = classification (categorizatin) Given examples, learn a general concept (category) subset of some general domain boolean-valued function over the domain (characteristic function) Determine infer a boolean-valued function from samples of it (input, output)

Training Examples for EnjoySport Concept learning: inferring a boolean-valued function from training examples Binary classification Concept to learn: Enjoy Sport Sky Temp Humid Wind Water Fore Cast Enjoy Sport Sunny Warm Normal Strong Same Yes High Rainy Cold Change No Cool

Representing Hypotheses Many possible representations Here, h is conjunction of constraints on attributes Each constraint can be a specific value (e.g., Water=Warm) don't care (e.g., Water=?) no value allowed (e.g., Water=Ø) For example, <Sky Temp Humid Wind Water Forecast > <Sunny ? ? Strong ? Same >

Concept learning task Given: Determine: A description of an instance, xX, where X is the instance language or instance space. A fixed set of categories: C={c1, c2,…cn} Determine: The category of x: c(x)C, where c(x) is a categorization function whose domain is X and whose range is C. If c(x) is a binary function C={0,1} ({true,false}, {positive, negative}, {yes, no}) then it is called a concept.

Example task “Days on which Aldo enjoys his water sports” day = set of attributes predict the value of one attribute given values of others Representation? Conjunction of constraints on attributes Sky Temp Humid Wind Water Fore Cast Enjoy Sport Sunny Warm Normal Strong Same Yes High Rainy Cold Change No Cool

Notation X: set of items over which the concept is defined c: target concept function X  {0,1} c(x) = 1: x is a positive example of c c(x) = 0: x is a negative example of c D: set of examples <x, c(x)> H: hypothesis space design choice members of H are functions X -> 0/1 Goal of (concept) learning find h in H such that h(x) = c(x) for all x in X

Prototypical Concept Learning Task Given: Instances X: Possible days, each described by the attributes Sky, Temp, Humidity, Wind, Water, Forecast Target function c: EnjoySport: X  {0,1} Hypotheses H: Conjunctions of literals. E.g. < ?, Cold, High, ?, ?, ?> Training examples D: Positive and negative examples of the target function <x1, c(x1)> , … <xn, c(xn)> Determine: A hypothesis h in H such that h(x)=c(x) for all x in D.

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.

Notes Unique Concept learning task requires most general hypothesis most specific hypothesis Concept learning task requires domain (set of instances) target function set of candidate hypotheses set of (labeled) examples

Induction Learning hypothesis All we know of c are the examples Best we can do is to produce a h consistent with example data Hypotheses best h regarding unseen instances is the best h regarding seen ones fundamental assumption in inductive learning

Concept learning as search H = search space find h best fitting to D Selection of representation defines search space size of space (syntactic/semantic) Efficient search in very large (or infinite) spaces for best h

General-to-Specific order Useful structure organize the search process exists for any concept learning task search possible without enumerating all members of H (may be infinite) h1 ‘more general than or equal’ h2 for all x: h1(x) = 1 implies h2(x) = 1 independent of c! defines a partial order on H

Instance, Hypotheses, and More-General-Than

Find-S Algorithm Initialize h to the most specific hypothesis in H 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 the next more general constraint that is satisfied by x Output hypothesis h

Find-S Algorithm

Key property of Find-S For H defined as conjunction of constraints finds the most specific h consistent with the positive examples consistent with negative ones if no noise and c is in H

Problems of Find-S Can not tell whether has learned c have we converged to c? if not, how uncertain we are of c? Why choose most specific h? Is training data consistent? noise can severely mislead Find-S detection, overcoming ‘most specific’ is not always unique (Depending on H, there might be several!) Frequently realistic training data is corrupted by errors (noise) in the features or class values. Such noise can result in missing valid generalizations.

Version Spaces and Candidate Elimination Another learning approach: outputs a description of all members of H that are consistent with D possible without enumerating members of H (ordering!) suffers from noise useful framework for introducing many fundamental issues of ML

Version Space Given an hypothesis space, H, and training data, D, the version space (VS) is the complete subset of H that is consistent with D. The version space can be naively generated for any finite H by enumerating all hypotheses and eliminating the inconsistent ones.

Version Space with S and G The version space can be represented more compactly by maintaining two boundary sets of hypotheses, S, the set of most specific consistent hypotheses, and G, the set of most general consistent hypotheses: S and G represent the entire version space via its boundaries in the generalization lattice: G version space S

List-Then-Eliminate Algorithm VersionSpace  a list containing every hypothesis in H For each training example, <x, c(x)> remove from VersionSpace any hypothesis h for which h(x) ≠ c(x) Output the list of hypotheses in VersionSpace

Example Version Space Sky Temp Humid Wind Water Fore Cast Enjoy Sport Sunny Warm Normal Strong Same Yes High Rainy Cold Change No Cool

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 where x ≥ y means x is more general or equal to y

Elimination algorithms List-then-Eliminate something to start with ineffective Candidate elimination same principle more compact representation maintain most specific and most general elements of VS(H,D)

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 inconsistent with d For each hypothesis s in S that is not consistent with d Remove s from S 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 Remove from S any hypothesis that is more general than another hypothesis in S If d is a negative example Remove from S any hypothesis inconsistent with d For each hypothesis g in G that is not consistent with d Remove g from G Add to G all minimal specializations h of g such that some member of S is more specific than h Remove from G any hypothesis that is less general than another hypothesis in G

Example Trace Next training example? Sky Temp Humid Wind Water Fore Cast Enjoy Sport Sunny Warm Normal Strong Same Yes High Rainy Cold Change No Cool

Sky Temp Humid Wind Water Fore Cast Enjoy Sport Sunny Warm Normal Strong Same Yes High Rainy Cold Change No Cool

How Should These Be Classified?

What Justifies this Inductive Leap?

Remarks on VS & CE Converges to correct h? Effect of errors (noise) no errors, H rich enough: yes exact: G = S and both singletons Effect of errors (noise) example 2 negative  CE removes the correct target from VS! detection: VS gets empty similarly when c can not be represented (e.g. disjunctions)

What example next? Assume learner may ask What to ask in example case? analogy: experiments, teacher query: instance constructed by learner, classified by teacher What to ask in example case? Is there a good general strategy? Should attempt to discriminate among alternatives in VS

What to ask... Discriminating example c(x) = 1: S will generalize c(x) = 0: G will specialize optimal choice halves VS x satisfies half of VS members not possible to generate one in general

How to use partially learned concepts? Classification with ambiguous VS h(x) = 0/1 for every h in VS: ok enough to check with G (0) & S (1) 3rd example: 50% support for both 4th: 66% support for 0 majority vote + confidence? Ok if all h are equally likely

Inductive Bias What if c is not in H? We concentrate us on C-E, but Use H that includes ‘everything’? Will be quite large --> effect on learning (generalization, # of examples) We concentrate us on C-E, but results apply to any algorithm outputting any consistent h for D

Biased hypothesis space Assure H contains c make H general enough what if it’s not? Example case max specific h consistent with x1 & x2 (+) is too general for x3 (-) reason: we have biased the learner to consider only conjunctions