Ch. 19 – Knowledge in Learning Supplemental slides for CSE 327 Prof. Jeff Heflin.

Slides:



Advertisements
Similar presentations
Version Space Search in Prolog سمینار درس : برنامه سازی منطق استاد : دکتر محمد ابراهیم شیری ارایه دهنده : رحمت ا... محمدی.
Advertisements

TWISTERTWISTER. TWISTERTWISTER Directions: 1)Each student picks a circle with a color (red, blue, green, yellow) from a bag. 2)The teacher spins the spinner.
Ch. 2 – Intelligent Agents Supplemental slides for CSE 327 Prof. Jeff Heflin.
Knowledge in Learning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 19 Spring 2004.
Ch. 18 – Learning Supplemental slides for CSE 327 Prof. Jeff Heflin.
Adapted by Doug Downey from: Bryan Pardo, EECS 349 Fall 2007 Machine Learning Lecture 2: Concept Learning and Version Spaces 1.
Machine Learning Tuomas Sandholm Carnegie Mellon University Computer Science Department.
Chapter 5 Outline Formal definition of CSP CSP Examples
MACHINE LEARNING. What is learning? A computer program learns if it improves its performance at some task through experience (T. Mitchell, 1997) A computer.
Artificial Intelligence University Politehnica of Bucharest Adina Magda Florea
Machine Learning Version Spaces Learning. 2  Neural Net approaches  Symbolic approaches:  version spaces  decision trees  knowledge discovery  data.
1. On a math test, 12 students earned an A
Fundamentals of machine learning 1 Types of machine learning In-sample and out-of-sample errors Version space VC dimension.
General-to-Specific Ordering. 8/29/03Logic Based Classification2 SkyAirTempHumidityWindWaterForecastEnjoySport SunnyWarmNormalStrongWarmSameYes SunnyWarmHighStrongWarmSameYes.
Ch. 3 – Search Supplemental slides for CSE 327 Prof. Jeff Heflin.
Machine Learning Chapter 2. Concept Learning and The General-to-specific Ordering Tom M. Mitchell.
Ch. 9 – FOL Inference Supplemental slides for CSE 327 Prof. Jeff Heflin.
Is this a square or a pentagon? It is a square.
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.
Outline Inductive bias General-to specific ordering of hypotheses
Overview Concept Learning Representation Inductive Learning Hypothesis
Revision Lecture Mauro Jaskelioff. AWK Program Structure AWK programs consists of patterns and procedures Pattern_1 { Procedure_1} Pattern_2 { Procedure_2}
For Monday No new reading Homework: –Chapter 18, exercises 3 and 4.
Learning, page 1 CSI 4106, Winter 2005 Symbolic learning Points Definitions Representation in logic What is an arch? Version spaces Candidate elimination.
1 Inductive Learning (continued) Chapter 19 Slides for Ch. 19 by J.C. Latombe.
KU NLP Machine Learning1 Ch 9. Machine Learning: Symbol- based  9.0 Introduction  9.1 A Framework for Symbol-Based Learning  9.2 Version Space Search.
1 Decision Tree Learning Original slides by Raymond J. Mooney University of Texas at Austin.
Supplemental slides for CSE 327 Prof. Jeff Heflin
A brief introduction to javadoc and doxygen. What’s in a program file? 1. Comments 2. Code.
Ch. 3 – Search Supplemental slides for CSE 327 Prof. Jeff Heflin.
Machine Learning Concept Learning General-to Specific Ordering
= 5 = 2 = 4 = 3 How could I make 13 from these shapes? How could I make 19 from these shapes? STARTER.
Ch. 7 – Logical Agents Supplemental slides for CSE 327 Prof. Jeff Heflin.
Ch. 3 – Search Supplemental slides for CSE 327 Prof. Jeff Heflin.
Type I and Type II Errors. For type I and type II errors, we must know the null and alternate hypotheses. H 0 : µ = 40 The mean of the population is 40.
Ch. 4 – Informed Search Supplemental slides for CSE 327 Prof. Jeff Heflin.
Computational Learning Theory Part 1: Preliminaries 1.
Chap. 10 Learning Sets of Rules 박성배 서울대학교 컴퓨터공학과.
Inductive Learning (2/2) Version Space and PAC Learning Russell and Norvig: Chapter 18, Sections 18.5 through 18.7 Chapter 18, Section 18.5 Chapter 19,
Ch. 7 – Logical Agents Supplemental slides for CSE 327 Prof. Jeff Heflin.
CSE 143 read: 12.5 Lecture 18: recursive backtracking.
Chapter 2 Concept Learning
Objective: Today we will be using bar models to create maths sentences.
Ch. 2 – Intelligent Agents
Supplemental slides for CSE 327 Prof. Jeff Heflin
Ordering of Hypothesis Space
Supplemental slides for CSE 327 Prof. Jeff Heflin
Fractions 1/2 1/8 1/3 6/8 3/4.
Version Spaces Learning
Basics of Classification

Ch. 19 – Knowledge in Learning
Here are four triangles. What do all of these triangles have in common
The Monty Hall Game PLAY Teacher’s Notes.
Supplemental slides for CSE 327 Prof. Jeff Heflin
Machine Learning Chapter 2
Thinking Game Information By: Garrett Conn.
Inductive Learning (2/2) Version Space and PAC Learning
Shapes.
Implementation of Learning Systems
Version Space Machine Learning Fall 2018.
Supplemental slides for CSE 327 Prof. Jeff Heflin
Supplemental slides for CSE 327 Prof. Jeff Heflin
Supplemental slides for CSE 327 Prof. Jeff Heflin
Ch. 2 – Intelligent Agents
Machine Learning Chapter 2
Supplemental slides for CSE 327 Prof. Jeff Heflin
On your whiteboards: How many ‘maths sentences’ can you write down from this diagram?
Supplemental slides for CSE 327 Prof. Jeff Heflin
Presentation transcript:

Ch. 19 – Knowledge in Learning Supplemental slides for CSE 327 Prof. Jeff Heflin

Current Best Hypothesis Search function CURRENT-BEST-LEARNING(examples) returns a hypothesis H  any hypothesis consistent with the first example in examples for each remaining example in examples do if e is false positive for H then H  choose a specialization of H consistent with examples else if e is false negative for H then H  choose a generalization of H consistent with examples if no consistent specialization/generalization can be found then fail return H Note: here choose is a special operator that allows you to backtrack to a previous choice and select another option when the search fails. An actual implementation would probably use depth-first search instead. From Figure 19.2, p. 681

Example Learning Problem ExampleDescriptionsClassifications X1X1 Color(X 1,Red)  Size(X 1,Large)  Shape(X 1,Circle) Q(X 1 ) X2X2 Color(X 2,Blue)  Size(X 2,Small)  Shape(X 2,Square)  Q(X 2 ) X3X3 Color(X 3,Red)  Size(X 3, Small)  Shape(X 3,Square)  Q(X 3 ) X4X4 Color(X 4,Green)  Size(X 4,Large)  Shape(X 4,Triangle)  Q(X 4 ) X5X5 Color(X 5,Red)  Size(X 5,Small)  Shape(X 5,Circle) Q(X 5 ) Only consider candidate definitions that are positive conjunctive sentences Training Set

Version Space Learning function VERSION-SPACE-LEARNING(examples) returns a version space local variables: V, the version space (the set of all hypotheses) V  the set of all hypotheses for each example e in examples do if V is not empty then V  VERSION-SPACE-UPDATE(V,e) return V function VERSION-SPACE-UPDATE(V,e) returns an updated version space V  {h  V: h is consistent with e} return V From Figure 19.3, p. 683

Version Space Update Details function VERSION-SPACE-UPDATE(G,S,e) returns an updated G-set and S-set (version space) for each g in G if e is a false positive for g G  G – g G  G  {h : h is the most general specialization of g that is consistent with e and h is more general than some member of S} else if e is a false negative for g G  G – g for each s in S if e is a false positive for s S  S – s else if e is a false negative for s S  S – s S  S  {h : h is the most specific generalization of s that is consistent with e and h is more specific than some member of G} return G,S

Example Learning Problem Only consider candidate definitions that are positive conjunctive sentences Training Set Descriptions Classifications Size(X 1,Large)  Shape(X 1,Circle)  Color(X 1,Red) Q(X 1 ) Size(X 2,Large)  Shape(X 2,Square)  Color(X 2,Blue)  Q(X 2 ) Size(X 3,Small)  Shape(X 3,Circle)  Color(X 3,Red) Q(X 3 ) Size(X 4,Small)  Shape(X 4,Circle)  Color(X 4,Blue)  Q(X 4 ) Size(X 5,Large)  Shape(X 5,Square)  Color(X 5,Red)  Q(X 5 )