Computing & Information Sciences Kansas State University CIS 530 / 730: Artificial Intelligence Lecture 09 of 42 Wednesday, 17 September 2008 William H.

Slides:



Advertisements
Similar presentations
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
Advertisements

Computing & Information Sciences Kansas State University Lecture 16 of 42 CIS 530 / 730 Artificial Intelligence Lecture 16 of 42 Knowledge Engineering.
Computing & Information Sciences Kansas State University Lecture 20 of 42 CIS 530 / 730 Artificial Intelligence Lecture 20 of 42 Introduction to Classical.
Artificial Intelligence Knowledge-based Agents Russell and Norvig, Ch. 6, 7.
CPSC 322, Lecture 20Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Computer Science cpsc322, Lecture 20 (Textbook.
Computing & Information Sciences Kansas State University Lecture 11 of 42 CIS 530 / 730 Artificial Intelligence Lecture 11 of 42 William H. Hsu Department.
Logical Agents Chapter 7 Feb 26, Knowledge and Reasoning Knowledge of action outcome enables problem solving –a reflex agent can only find way from.
A Brief Survey of Machine Learning
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 26 of 41 Friday, 22 October.
CpSc 810: Machine Learning Design a learning system.
Computing & Information Sciences Kansas State University Wednesday, 13 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 9 of 42 Wednesday, 13 September.
Computing & Information Sciences Kansas State University Lecture 10 of 42 CIS 530 / 730 Artificial Intelligence Lecture 10 of 42 William H. Hsu Department.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 9 of 14 Friday, 10 September.
Computing & Information Sciences Kansas State University Wednesday, 15 Oct 2008CIS 530 / 730: Artificial Intelligence Lecture 20 of 42 Wednesday, 15 October.
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Logical Agents Logic Propositional Logic Summary
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 21 of 41 Wednesday, 08.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 16 Monday, 29 September.
Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Jim Little UBC CS 322 – CSP October 20, 2014.
Computing & Information Sciences Kansas State University Wednesday, 22 Oct 2008CIS 530 / 730: Artificial Intelligence Lecture 22 of 42 Wednesday, 22 October.
Well Posed Learning Problems Must identify the following 3 features –Learning Task: the thing you want to learn. –Performance measure: must know when you.
Computing & Information Sciences Kansas State University Wednesday, 20 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 12 of 42 Wednesday, 20 September.
Computing & Information Sciences Kansas State University Lecture 22 of 42 CIS 530 / 730 Artificial Intelligence Lecture 22 of 42 Planning: Sensorless and.
Computing & Information Sciences Kansas State University Wednesday, 12 Sep 2007CIS 530 / 730: Artificial Intelligence Lecture 9 of 42 Wednesday, 12 September.
Computing & Information Sciences Kansas State University Wednesday, 25 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 26 of 42 Wednesday. 25 October.
Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence Lecture 21 of 42 Planning: Graph Planning.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 11 of 41 Wednesday, 15.
Computing & Information Sciences Kansas State University Lecture 8 of 42 CIS 530 / 730 Artificial Intelligence Lecture 8 of 42 William H. Hsu Department.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 13 of 41 Monday, 20 September.
Computing & Information Sciences Kansas State University Lecture 13 of 42 CIS 530 / 730 Artificial Intelligence Lecture 13 of 42 William H. Hsu Department.
Computing & Information Sciences Kansas State University Lecture 40 of 42 CIS 530 / 730 Artificial Intelligence Lecture 40 of 42 A Brief Survey of Computer.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 17 Wednesday, 01 October.
Kansas State University Department of Computing and Information Sciences CIS 732: Machine Learning and Pattern Recognition Thursday, November 29, 2001.
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 17, 2012.
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 12 Friday, 17 September.
Computing & Information Sciences Kansas State University Lecture 14 of 42 CIS 530 / 730 Artificial Intelligence Lecture 14 of 42 William H. Hsu Department.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 9 of 42 Wednesday, 14.
Computing & Information Sciences Kansas State University Monday, 25 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 14 of 42 Monday, 25 September.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 23 Friday, 17 October.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 14 of 41 Wednesday, 22.
1 Logical Inference Algorithms CS 171/271 (Chapter 7, continued) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 15 of 41 Friday 24 September.
Computing & Information Sciences Kansas State University Lecture 15 of 42 CIS 530 / 730 Artificial Intelligence Lecture 15 of 42 William H. Hsu Department.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 34 of 41 Wednesday, 10.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 18 of 41 Friday, 01 October.
Computing & Information Sciences Kansas State University Monday, 11 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 8 of 42 Monday, 11 September.
Computing & Information Sciences Kansas State University Wednesday, 19 Sep 2007CIS 530 / 730: Artificial Intelligence Lecture 12 of 42 Wednesday, 19 September.
Computing & Information Sciences Kansas State University Monday, 23 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 25 of 42 Monday, 23 October.
Computing & Information Sciences Kansas State University Friday, 20 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 24 of 42 Friday, 20 October.
Computing & Information Sciences Kansas State University Lecture 12 of 42 CIS 530 / 730 Artificial Intelligence Lecture 12 of 42 William H. Hsu Department.
Computing & Information Sciences Kansas State University Wednesday, 13 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 10 of 42 Wednesday, 13 September.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 24 of 41 Monday, 18 October.
Well Posed Learning Problems Must identify the following 3 features –Learning Task: the thing you want to learn. –Performance measure: must know when you.
Computing & Information Sciences Kansas State University Monday, 09 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 19 of 42 Monday, 09 October.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 14 of 42 Wednesday, 22.
Proof Methods for Propositional Logic CIS 391 – Intro to Artificial Intelligence.
Computing & Information Sciences Kansas State University Wednesday, 04 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 17 of 42 Wednesday, 04 October.
Computing & Information Sciences Kansas State University Monday, 22 Sep 2008CIS 530 / 730: Artificial Intelligence Lecture 11 of 42 Monday, 22 September.
Computing & Information Sciences Kansas State University Friday, 13 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 21 of 42 Friday, 13 October.
Computing & Information Sciences Kansas State University Wednesday, 25 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 26 of 42 Wednesday. 25 October.
Computing & Information Sciences Kansas State University Monday, 18 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 11 of 42 Monday, 18 September.
Computing & Information Sciences Kansas State University Friday, 03 Oct 2008CIS 530 / 730: Artificial Intelligence Lecture 16 of 42 Friday, 03 October.
Supervise Learning Introduction. What is Learning Problem Learning = Improving with experience at some task – Improve over task T, – With respect to performance.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Spring 2003 Dr. Susan Bridges
Artificial Intelligence
Logical Agents Prof. Dr. Widodo Budiharto 2018
Presentation transcript:

Computing & Information Sciences Kansas State University CIS 530 / 730: Artificial Intelligence Lecture 09 of 42 Wednesday, 17 September 2008 William H. Hsu Department of Computing and Information Sciences, KSU KSOL course page: Course web site: Instructor home page: Reading for Next Class: Section 7.5 – 7.7, p , Russell & Norvig 2 nd edition Logical Agents and Propositional Logic Discussion: Logic in AI

Computing & Information Sciences Kansas State University CIS 530 / 730: Artificial Intelligence Lecture Outline Reading for Next Class: Sections 7.5 – 7.7, R&N 2 e Today: Logical Agents  Classical knowledge representation  Limitations of the classical symbolic approach  Modern approach: representation, reasoning, learning  “New” aspects: uncertainty, abstraction, classification paradigm Next Week: Start of Material on Logic  Representation: “a bridge between learning and reasoning” (Koller)  Basis for automated reasoning: theorem proving, other inference

Computing & Information Sciences Kansas State University Type of Training Experience  Direct or indirect?  Teacher or not?  Knowledge about the game (e.g., openings/endgames)? Problem: Is Training Experience Representative (of Performance Goal)? Software Design  Assumptions of the learning system: legal move generator exists  Software requirements: generator, evaluator(s), parametric target function Choosing a Target Function  ChooseMove: Board  Move (action selection function, or policy)  V: Board  R (board evaluation function)  Ideal target V; approximated target  Goal: operational description (approximation) of V Example: Learning to Play Checkers

Computing & Information Sciences Kansas State University A Target Function for Learning to Play Checkers Possible Definition  If b is a final board state that is won, then V(b) = 100  If b is a final board state that is lost, then V(b) = -100  If b is a final board state that is drawn, then V(b) = 0  If b is not a final board state in the game, then V(b) = V(b’) where b’ is the best final board state that can be achieved starting from b and playing optimally until the end of the game  Correct values, but not operational Choosing a Representation for the Target Function  Collection of rules?  Neural network?  Polynomial function (e.g., linear, quadratic combination) of board features?  Other? A Representation for Learned Function   bp/rp = number of black/red pieces; bk/rk = number of black/red kings; bt/rt = number of black/red pieces threatened (can be taken next turn)

Computing & Information Sciences Kansas State University Training Procedure for Learning to Play Checkers Obtaining Training Examples  the target function  the learned function  the training value One Rule For Estimating Training Values:  Choose Weight Tuning Rule  Least Mean Square (LMS) weight update rule: REPEAT  Select a training example b at random  Compute the error(b) for this training example  For each board feature f i, update weight w i as follows: where c is a small, constant factor to adjust the learning rate

Computing & Information Sciences Kansas State University Design Choices for Learning to Play Checkers Completed Design Determine Type of Training Experience Games against experts Games against self Table of correct moves Determine Target Function Board  valueBoard  move Determine Representation of Learned Function Polynomial Linear function of six features Artificial neural network Determine Learning Algorithm Gradient descent Linear programming

Computing & Information Sciences Kansas State University Knowledge Bases Adapted from slides by S. Russell UC Berkeley

Computing & Information Sciences Kansas State University Simple Knowledge-Based Agent Figure 6.1 p. 152 R&N Adapted from slides by S. Russell UC Berkeley

Computing & Information Sciences Kansas State University Friday, 14 Sep 2007 CIS 530 / 730: Artificial Intelligence Overview Today’s Reading  Sections 7.1 – 7.4, Russell and Norvig 2e  Recommended references: Nilsson and Genesereth (Logical Foundations of AI) Previously: Logical Agents  Knowledge Bases (KB) and KB agents  Motivating example: Wumpus World  Logic in general  Syntax of propositional calculus Today  Propositional calculus (concluded)  Normal forms  Production systems  Predicate logic  Introduction to First-Order Logic (FOL): examples, inference rules (sketch) Next Week: First-Order Logic Review, Resolution

Computing & Information Sciences Kansas State University Friday, 14 Sep 2007 CIS 530 / 730: Artificial Intelligence Knowledge Representation (KR) for Intelligent Agent Problems Percepts  What can agent observe?  What can sensors tell it? Actions  What actuators does agent have?  In what context are they applicable? Goals  What are agents goals? Preferences (utilities)?  How does agent evaluate them (check environment, deliberate, etc.)? Environment  What are “rules of the world”?  How can these be represented, simulated?

Computing & Information Sciences Kansas State University Friday, 14 Sep 2007 CIS 530 / 730: Artificial Intelligence Review: Simple Knowledge-Based Agent Adapted from slides by S. Russell, UC Berkeley Figure 6.1 p. 152 R&N

Computing & Information Sciences Kansas State University Friday, 14 Sep 2007 CIS 530 / 730: Artificial Intelligence Review: Types of Logic Adapted from slides by S. Russell, UC Berkeley Figure 6.7 p. 166 R&N

Computing & Information Sciences Kansas State University Friday, 14 Sep 2007 CIS 530 / 730: Artificial Intelligence Adapted from slides by S. Russell, UC Berkeley Propositional Logic: Semantics

Computing & Information Sciences Kansas State University Friday, 14 Sep 2007 CIS 530 / 730: Artificial Intelligence Adapted from slides by S. Russell, UC Berkeley Propositional Inference: Enumeration (Model Checking) Method

Computing & Information Sciences Kansas State University Friday, 14 Sep 2007 CIS 530 / 730: Artificial Intelligence Adapted from slides by S. Russell, UC Berkeley Normal Forms: CNF, DNF, Horn

Computing & Information Sciences Kansas State University Friday, 14 Sep 2007 CIS 530 / 730: Artificial Intelligence Adapted from slides by S. Russell, UC Berkeley Validity and Satisfiability

Computing & Information Sciences Kansas State University Friday, 14 Sep 2007 CIS 530 / 730: Artificial Intelligence Adapted from slides by S. Russell, UC Berkeley Proof Methods

Computing & Information Sciences Kansas State University Friday, 14 Sep 2007 CIS 530 / 730: Artificial Intelligence Adapted from slides by S. Russell, UC Berkeley Inference (Sequent) Rules for Propositional Logic

Computing & Information Sciences Kansas State University Friday, 14 Sep 2007 CIS 530 / 730: Artificial Intelligence Logical Agents: Taking Stock Adapted from slides by S. Russell, UC Berkeley

Computing & Information Sciences Kansas State University CIS 530 / 730: Artificial Intelligence The Road Ahead: Predicate Logic and FOL Predicate Logic  Enriching language  Predicates  Functions  Syntax and semantics of predicate logic First-Order Logic (FOL, FOPC)  Need for quantifiers  Relation to (unquantified) predicate logic  Syntax and semantics of FOL Fun with Sentences Wumpus World in FOL Adapted from slides by S. Russell, UC Berkeley

Computing & Information Sciences Kansas State University Friday, 14 Sep 2007 CIS 530 / 730: Artificial Intelligence Syntax of FOL: Basic Elements Adapted from slides by S. Russell, UC Berkeley

Computing & Information Sciences Kansas State University Friday, 14 Sep 2007 CIS 530 / 730: Artificial Intelligence FOL: Atomic Sentences (Atomic Well-Formed Formulae) Adapted from slides by S. Russell, UC Berkeley

Computing & Information Sciences Kansas State University Friday, 14 Sep 2007 CIS 530 / 730: Artificial Intelligence Summary Points Logical Agents Overview (Last Time)  Knowledge Bases (KB) and KB agents  Motivating example: Wumpus World  Logic in general  Syntax of propositional calculus Propositional and First-Order Calculi (Today)  Propositional calculus (concluded)  Normal forms  Inference (aka sequent) rules  Production systems  Predicate logic without quantifiers  Introduction to First-Order Logic (FOL)  Examples  Inference rules (sketch) Next Week: First-Order Logic Review, Intro to Theorem Proving

Computing & Information Sciences Kansas State University Friday, 14 Sep 2007 CIS 530 / 730: Artificial Intelligence Fun with Sentences: Family Feud Adapted from slides by S. Russell, UC Berkeley Brothers are Siblings   x, y. Brother (x, y)  Sibling (x, y) Siblings (i.e., Sibling Relationships) are Reflexive   x, y. Sibling (x, y)  Sibling (y, x) One’s Mother is One’s Female Parent   x, y. Mother (x, y)  Female (x)  Parent (x, y) A First Cousin Is A Child of A Parent’s Sibling   x, y. First-Cousin (x, y)   p, ps. Parent (p, x)  Sibling (p, ps)  Parent (ps, y)

Computing & Information Sciences Kansas State University Friday, 14 Sep 2007 CIS 530 / 730: Artificial Intelligence “Every Dog Chases Its Own Tail”   d. Chases (d, tail-of (d))  Alternative Statement:  d.  t. Tail-Of (t, d)  Chases (d, t)  Prefigures concept of Skolemization (Skolem variables / functions) “Every Dog Chases Its Own (Unique) Tail”   d.  1 t. Tail-Of (t, d)  Chases (d, t)   d.  t. Tail-Of (t, d)  Chases (d, t)  [  t’ Chases (d, t’)  t’ = t] “Only The Wicked Flee when No One Pursueth”   x. Flees (x)  [¬  y Pursues (y, x)]  Wicked (x)  Alternative :  x. [  y. Flees (x, y)]  [¬  z. Pursues (z, x)]  Wicked (x) Offline Exercise: What Is An nth Cousin, m Times Removed? Jigsaw Exercise: First-Order Logic Sentences

Computing & Information Sciences Kansas State University CIS 530 / 730: Artificial Intelligence Terminology Logical Frameworks  Knowledge Bases (KB)  Logic in general: representation languages, syntax, semantics  Propositional logic  First-order logic (FOL, FOPC)  Model theory, domain theory: possible worlds semantics, entailment Normal Forms  Conjunctive Normal Form (CNF)  Disjunctive Normal Form (DNF)  Horn Form Proof Theory and Inference Systems  Sequent calculi: rules of proof theory  Derivability or provability  Properties  Soundness (derivability implies entailment)  Completeness (entailment implies derivability)