Learning from Observations Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 18.

Slides:



Advertisements
Similar presentations
Learning from Observations Chapter 18 Section 1 – 3.
Advertisements

Machine Learning: Intro and Supervised Classification
CPSC 502, Lecture 15Slide 1 Introduction to Artificial Intelligence (AI) Computer Science cpsc502, Lecture 15 Nov, 1, 2011 Slide credit: C. Conati, S.
Learning from Observations Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 18 Spring 2004.
Machine Learning CPSC 315 – Programming Studio Spring 2009 Project 2, Lecture 5.
Learning from Observations Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 18 Fall 2005.
Cooperating Intelligent Systems
Computational Learning Theory PAC IID VC Dimension SVM Kunstmatige Intelligentie / RuG KI2 - 5 Marius Bulacu & prof. dr. Lambert Schomaker.
LEARNING FROM OBSERVATIONS Yılmaz KILIÇASLAN. Definition Learning takes place as the agent observes its interactions with the world and its own decision-making.
Learning from Observations Chapter 18 Section 1 – 4.
18 LEARNING FROM OBSERVATIONS
Learning from Observations Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 18.
Learning From Observations
Learning from Observations Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 18 Fall 2004.
Machine Learning Tuomas Sandholm Carnegie Mellon University Computer Science Department.
Ensemble Learning: An Introduction
CSCE 580 Artificial Intelligence Ch.18: Learning from Observations
Three kinds of learning
LEARNING FROM OBSERVATIONS Yılmaz KILIÇASLAN. Definition Learning takes place as the agent observes its interactions with the world and its own decision-making.
LEARNING DECISION TREES
Learning decision trees derived from Hwee Tou Ng, slides for Russell & Norvig, AI a Modern Approachslides Tom Carter, “An introduction to information theory.
Learning decision trees
Learning decision trees derived from Hwee Tou Ng, slides for Russell & Norvig, AI a Modern Approachslides Tom Carter, “An introduction to information theory.
ICS 273A Intro Machine Learning
CS 4700: Foundations of Artificial Intelligence
Learning: Introduction and Overview
Part I: Classification and Bayesian Learning
CS 4700: Foundations of Artificial Intelligence
Induction of Decision Trees (IDT) CSE 335/435 Resources: – –
Machine Learning CS 165B Spring 2012
By Wang Rui State Key Lab of CAD&CG
Machine Learning CPS4801. Research Day Keynote Speaker o Tuesday 9:30-11:00 STEM Lecture Hall (2 nd floor) o Meet-and-Greet 11:30 STEM 512 Faculty Presentation.
INTRODUCTION TO MACHINE LEARNING. $1,000,000 Machine Learning  Learn models from data  Three main types of learning :  Supervised learning  Unsupervised.
Inductive learning Simplest form: learn a function from examples
Learning CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
COMP3503 Intro to Inductive Modeling
Midterm Review Rao Vemuri 16 Oct Posing a Machine Learning Problem Experience Table – Each row is an instance – Each column is an attribute/feature.
Machine Learning1 Machine Learning: Summary Greg Grudic CSCI-4830.
LEARNING DECISION TREES Yılmaz KILIÇASLAN. Definition - I Decision tree induction is one of the simplest, and yet most successful forms of learning algorithm.
Learning from observations
Learning from Observations Chapter 18 Through
CHAPTER 18 SECTION 1 – 3 Learning from Observations.
 2003, G.Tecuci, Learning Agents Laboratory 1 Learning Agents Laboratory Computer Science Department George Mason University Prof. Gheorghe Tecuci 5.
Learning from Observations Chapter 18 Section 1 – 3, 5-8 (presentation TBC)
Learning from Observations Chapter 18 Section 1 – 3.
CLASSIFICATION: Ensemble Methods
Learning from observations
Decision Trees. What is a decision tree? Input = assignment of values for given attributes –Discrete (often Boolean) or continuous Output = predicated.
Machine Learning II Decision Tree Induction CSE 573.
1 Chapter 10 Introduction to Machine Learning. 2 Chapter 10 Contents (1) l Training l Rote Learning l Concept Learning l Hypotheses l General to Specific.
CS Inductive Bias1 Inductive Bias: How to generalize on novel data.
CSC 8520 Spring Paula Matuszek DecisionTreeFirstDraft Paula Matuszek Spring,
Chapter 18 Section 1 – 3 Learning from Observations.
Learning From Observations Inductive Learning Decision Trees Ensembles.
Tree and Forest Classification and Regression Tree Bagging of trees Boosting trees Random Forest.
CS-424 Gregory Dudek Lecture 14 Learning –Inductive inference –Probably approximately correct learning.
Anifuddin Azis LEARNING. Why is learning important? So far we have assumed we know how the world works Rules of queens puzzle Rules of chess Knowledge.
Decision Tree Learning CMPT 463. Reminders Homework 7 is due on Tuesday, May 10 Projects are due on Tuesday, May 10 o Moodle submission: readme.doc and.
Learning from Observations
Learning from Observations
Learning from Observations
Machine Learning Inductive Learning and Decision Trees
Introduce to machine learning
Presented By S.Yamuna AP/CSE
CSE P573 Applications of Artificial Intelligence Decision Trees
Learning from Observations
Lecture 14 Learning Inductive inference
Learning from Observations
Decision trees One possible representation for hypotheses
Machine Learning: Decision Tree Learning
Presentation transcript:

Learning from Observations Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 18

CSS 471/598, CBS 598 by H. Liu2 Learning agents Improve their behavior through diligent study of their own experiences Again modeled on humans Acting -> Experience -> Better Acting We’ll study how to make a learning agent to learn; what is needed for learning; and some representative methods of learning from observations

CSS 471/598, CBS 598 by H. Liu3 Learning agents

CSS 471/598, CBS 598 by H. Liu4 A general model What are the components of a learning agent? Learning element - learn and improve (Fig 2.15) Performance element - an agent itself to perceive & act Problem generator - suggest some exploratory actions Critic - provide feedback how the agent is doing The design of a learning agent is affected by four issues: prior information feedback representation performance

CSS 471/598, CBS 598 by H. Liu5 What do we need Components of the performance element Each component should be learnable given feedback Representation of the components Propositional Logic, FOL, or others Available feedback (teacher, reward, none) Supervised, Reinforcement, Unsupervised Prior knowledge Nil, some, (Why not all?) Put it all together as learning some functions

CSS 471/598, CBS 598 by H. Liu6 Inductive Learning Data described by examples an example is a pair (x, f(x)), x is a vetor Induction - given a collection of examples of f, return a function h that approximates f. Data in the next slide (Fig 18.3) Concepts about learning (in the next few slides)  Hypotheses  Bias Learning incrementally or in batch

CSS 471/598, CBS 598 by H. Liu7 Attribute-based representations Examples described by attribute values (Boolean, discrete, continuous) E.g., situations where I will/won't wait for a table: Classification of examples is positive (T) or negative (F)

CSS 471/598, CBS 598 by H. Liu8 Inductive learning method Construct/adjust h to agree with f on training set (h is consistent if it agrees with f on all examples) E.g., curve fitting:

CSS 471/598, CBS 598 by H. Liu9 Inductive learning method Construct/adjust h to agree with f on training set (h is consistent if it agrees with f on all examples) E.g., curve fitting:

CSS 471/598, CBS 598 by H. Liu10 Inductive learning method Construct/adjust h to agree with f on training set (h is consistent if it agrees with f on all examples) E.g., curve fitting:

CSS 471/598, CBS 598 by H. Liu11 Inductive learning method Construct/adjust h to agree with f on training set (h is consistent if it agrees with f on all examples) E.g., curve fitting:

CSS 471/598, CBS 598 by H. Liu12 Inductive learning method Construct/adjust h to agree with f on training set (h is consistent if it agrees with f on all examples) E.g., curve fitting:

CSS 471/598, CBS 598 by H. Liu13 Inductive learning method Construct/adjust h to agree with f on training set (h is consistent if it agrees with f on all examples) E.g., curve fitting: Ockham’s razor: prefer the simplest hypothesis consistent with data

CSS 471/598, CBS 598 by H. Liu14 Some questions about inductive learning Are there many forms of inductive learning? What are the forms you are aware of? We’ll learn some Can we achieve both expressiveness and efficiency? How can one possibly know that one’s learning algorithm has produced a theory that will correctly predict the future? If one does not, how can one say that the algorithm is any good?

CSS 471/598, CBS 598 by H. Liu15 Learning decision trees A decision tree takes as input an object described by a set of properties and outputs yes/no “decision”. One of the simplest and yet most successful forms of learning To make a decision “wait” or “not wait”, we need information such as … (page 654 for 10 attributes for the data set in Fig 18.3) Patrons(Full)^WaitEstimate(0-10)^Hungry(N)=>WillWait

CSS 471/598, CBS 598 by H. Liu16 Let’s make a decision Where to start? Use the data itself to make decisions  When encounter missing rows, use class distribution Or use a decision tree, with which attribute to start first?

CSS 471/598, CBS 598 by H. Liu17 Expressiveness of a DT A possible DT (e.g., Fig 18.2 ) The decision tree language is essentially propositional, with each attribute test being a proposition. Any Boolean functions can be written as a decision tree (truth tables DTs) DTs can represent many functions with much smaller trees, but not for all Boolean functions (e.g., parity, majority)

CSS 471/598, CBS 598 by H. Liu18 How many different functions are in the set of all Boolean functions on n Boolean attributes? How to find consistent hypotheses in the space of all possible ones? And which one is most likely the best? What is the simplest way to induce? Some choices are … (your suggestions, please)

CSS 471/598, CBS 598 by H. Liu19 Inducing DTs from examples Extracting a pattern (DTs) means being able to describe a large number of cases in a concise way – we need a consistent & concise tree. Applying Occam’s razor: the most likely hypothesis is the simplest one that is consistent with all observations. How to find the smallest DT? Examine the most important attribute first (Fig 18.4) Algorithm (Fig 18.5, page 658) Another DT (Fig 18.6)

CSS 471/598, CBS 598 by H. Liu20 Choosing an attribute Idea: a good attribute splits the examples into subsets that are (ideally) "all positive" or "all negative" Patrons? is a better choice

CSS 471/598, CBS 598 by H. Liu21 Choosing the best attribute A computational method - information theory Information - informally, the more surprise you have, the more information you have; mathematically, I(P(v1),…,P(vn)) = sum[-P(vi)logP(vi)]  I(1/2,1/2) = 1  I(0,1) = (1,0) = 0 Information alone can’t help much to answer “what is the correct classification?”.

CSS 471/598, CBS 598 by H. Liu22 Information gain - the difference between the original and the new info requirement: Remainder(A) = p1*I(B1)+…+pn*I(Bn) where p1+…+pn = 1 Gain(A) = I(A) - Remainder(A)

CSS 471/598, CBS 598 by H. Liu23 Which attribute? Revisit the example of “Wait” or “Not Wait” using your favorite 2 attributes.

CSS 471/598, CBS 598 by H. Liu24 Assessing the performance A fair assessment: the one the learner has not seen. Errors and accuracy rate Training and test sets: Divide the data into two sets Learn on the training set Test on the test set If necessary, shuffle the data and repeat Cross Validation Example: 3 5-fold CV

CSS 471/598, CBS 598 by H. Liu25 Learning curve - “happy graph”

CSS 471/598, CBS 598 by H. Liu26 Ensemble Learning Select a collection of hypotheses (or ensemble) from the hypothesis space and combine their predictions Hope to reduce misclassification by a single hypothesis (Fig. 18.8) Key issues How many hypotheses to produce How to combine them to predict  Majority vote  Sum of Weighted Some examples to generate many hypotheses Random forest Boosting Fig Bagging (bootstrap aggregating, see the complementary slides W8ensemble.ppt)

CSS 471/598, CBS 598 by H. Liu27 Practical use of DT learning BP’s use of GASOIL Learning to fly on a flight simulator An industrial strength system - Quinlan’s C4.5 Who’s the next hero?

CSS 471/598, CBS 598 by H. Liu28 Some issues of DT applications Missing values Multivalued attributes Continuous-valued attributes

CSS 471/598, CBS 598 by H. Liu29 Why learning works? How can one possibly know that his/her learning algorithm will correctly predict the future? Stationarity assumption – T rain and T est Datasets have the same probability distribution I.I.D. assumption – Data are independent and identically distributed How do we know that h is close enough to f without knowing f? Any suggestion?

CSS 471/598, CBS 598 by H. Liu30 Computational learning theory has some answer. The basic idea is that because any wrong h will make an incorrect prediction, it will be found out with high probability after a small number of examples. So, if h is consistent with a sufficient number of examples, it is unlikely to be seriously wrong – hence, it is probably approximately correct (PAC). How many examples are needed for learning?  error(h) = P(h(x)  f(x) |x drawn from D)  Define “seriously wrong” as error(h b ) >   P(h b agrees with N examples)  (1-  ) N  P(H b contains a consistent h)  |H b |(1-  ) N  |H|(1-  ) N    N  ln |H|, given 1-   e -  PAC learning H HbHb  f

CSS 471/598, CBS 598 by H. Liu31 Summary Learning is essential for intelligent agents dealing with the unknowns improving its capability over time All types of learning can be considered as learning an accurate representation h of f. Inductive learning f from data to h Decision trees - deterministic Boolean functions Ensemble learning PAC learning