CPSC 322, Lecture 33Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 33 Nov, 30, 2015 Slide source: from David Page (MIT) (which were.

Slides:



Advertisements
Similar presentations
Slide 1 of 18 Uncertainty Representation and Reasoning with MEBN/PR-OWL Kathryn Blackmond Laskey Paulo C. G. da Costa The Volgenau School of Information.
Advertisements

Decision Theory: Sequential Decisions Computer Science cpsc322, Lecture 34 (Textbook Chpt 9.3) Nov, 28, 2012.
CSE 473/573 Computer Vision and Image Processing (CVIP) Ifeoma Nwogu Lecture 27 – Overview of probability concepts 1.
Learning Probabilistic Relational Models Daphne Koller Stanford University Nir Friedman Hebrew University Lise.
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 20
Department of Computer Science Undergraduate Events More
Learning Probabilistic Relational Models Lise Getoor 1, Nir Friedman 2, Daphne Koller 1, and Avi Pfeffer 3 1 Stanford University, 2 Hebrew University,
CPSC 422, Lecture 33Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 33 Apr, 8, 2015 Slide source: from David Page (MIT) (which were.
Modelling Relational Statistics With Bayes Nets School of Computing Science Simon Fraser University Vancouver, Canada Tianxiang Gao Yuke Zhu.
CPSC 322, Lecture 26Slide 1 Reasoning Under Uncertainty: Belief Networks Computer Science cpsc322, Lecture 27 (Textbook Chpt 6.3) March, 16, 2009.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
Decision Theory: Single Stage Decisions Computer Science cpsc322, Lecture 33 (Textbook Chpt 9.2) March, 30, 2009.
CPSC 322, Lecture 37Slide 1 Finish Markov Decision Processes Last Class Computer Science cpsc322, Lecture 37 (Textbook Chpt 9.5) April, 8, 2009.
CPSC 322, Lecture 30Slide 1 Reasoning Under Uncertainty: Variable elimination Computer Science cpsc322, Lecture 30 (Textbook Chpt 6.4) March, 23, 2009.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
CPSC 322, Lecture 12Slide 1 CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12 (Textbook Chpt ) January, 29, 2010.
CSE 574 – Artificial Intelligence II Statistical Relational Learning Instructor: Pedro Domingos.
Big Ideas in Cmput366. Search Blind Search Iterative deepening Heuristic Search A* Local and Stochastic Search Randomized algorithm Constraint satisfaction.
CPSC 322, Lecture 17Slide 1 Planning: Representation and Forward Search Computer Science cpsc322, Lecture 17 (Textbook Chpt 8.1 (Skip )- 8.2) February,
1 Department of Computer Science and Engineering, University of South Carolina Issues for Discussion and Work Jan 2007  Choose meeting time.
CPSC 322, Lecture 31Slide 1 Probability and Time: Markov Models Computer Science cpsc322, Lecture 31 (Textbook Chpt 6.5) March, 25, 2009.
CPSC 322, Lecture 32Slide 1 Probability and Time: Hidden Markov Models (HMMs) Computer Science cpsc322, Lecture 32 (Textbook Chpt 6.5) March, 27, 2009.
CPSC 422, Lecture 18Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 18 Feb, 25, 2015 Slide Sources Raymond J. Mooney University of.
CPSC 422, Lecture 14Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 14 Feb, 4, 2015 Slide credit: some slides adapted from Stuart.
CPSC 422, Lecture 19Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 19 Feb, 27, 2015 Slide Sources Raymond J. Mooney University of.
CPSC 322, Lecture 35Slide 1 Value of Information and Control Computer Science cpsc322, Lecture 35 (Textbook Chpt 9.4) April, 14, 2010.
Dynamic Bayesian Networks CSE 473. © Daniel S. Weld Topics Agency Problem Spaces Search Knowledge Representation Reinforcement Learning InferencePlanningLearning.
CPSC 322, Lecture 24Slide 1 Reasoning under Uncertainty: Intro to Probability Computer Science cpsc322, Lecture 24 (Textbook Chpt 6.1, 6.1.1) March, 15,
Web-Enabled Decision Support Systems
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
CPSC 322, Lecture 32Slide 1 Probability and Time: Hidden Markov Models (HMMs) Computer Science cpsc322, Lecture 32 (Textbook Chpt 6.5.2) Nov, 25, 2013.
Probabilistic Models of Object-Relational Domains
CPSC 422, Lecture 11Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 11 Oct, 2, 2015.
CPSC 422, Lecture 19Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 19 Oct, 23, 2015 Slide Sources Raymond J. Mooney University of.
CPSC 422, Lecture 33Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 34 Dec, 2, 2015 Slide source: from David Page (MIT) (which were.
CPSC 422, Lecture 28Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 28 Nov, 18, 2015.
CPSC 422, Lecture 32Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 32 Nov, 27, 2015 Slide source: from Pedro Domingos UW & Markov.
CPSC 422, Lecture 17Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 17 Oct, 19, 2015 Slide Sources D. Koller, Stanford CS - Probabilistic.
CPSC 322, Lecture 2Slide 1 Representational Dimensions Computer Science cpsc322, Lecture 2 (Textbook Chpt1) Sept, 7, 2012.
UBC Department of Computer Science Undergraduate Events More
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Mapping Constraints Keys.
CPSC 322, Lecture 26Slide 1 Reasoning Under Uncertainty: Belief Networks Computer Science cpsc322, Lecture 27 (Textbook Chpt 6.3) Nov, 13, 2013.
Daphne Koller Introduction Motivation and Overview Probabilistic Graphical Models.
Learning Bayesian Networks for Complex Relational Data
Please Also Complete Teaching Evaluations
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 33
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 10
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 7
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 19
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 32
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 14
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 32
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 17
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 11
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 20
Probability and Time: Markov Models
UBC Department of Computer Science Undergraduate Events More
Probability and Time: Markov Models
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 2
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 17
Probability and Time: Markov Models
Please Also Complete Teaching Evaluations
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 11
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 14
Probability and Time: Markov Models
Chapter 14 February 26, 2004.
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 7
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 7
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 14
Presentation transcript:

CPSC 322, Lecture 33Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 33 Nov, 30, 2015 Slide source: from David Page (MIT) (which were from From Lise Getoor, Nir Friedman, Daphne Koller, and Avi Pfeffer) and from Lise Getoor

422 big picture: Where are we? Query Planning DeterministicStochastic Value Iteration Approx. Inference Full Resolution SAT Logics Belief Nets Markov Decision Processes and Partially Observable MDP Markov Chains and HMMs First Order Logics Ontologies Applications of AI Approx. : Gibbs Undirected Graphical Models Markov Networks Conditional Random Fields Reinforcement Learning Representation Reasoning Technique Prob CFG Prob Relational Models Markov Logics StarAI (statistical relational AI) Hybrid: Det +Sto Forward, Viterbi…. Approx. : Particle Filtering CPSC 322, Lecture 33Slide 2

Combining Symbolic and Probabilistic R&R systems CPSC 322, Lecture 33 Slide 3 (a) Probabilistic Context-Free Grammars Weights are conditional prob. on rewriting rules Applications: NLP parsing & Hierarchical Planning (b) Markov Logics: weighted FOL (c) Probabilistic Relational models Probs specified on relations

Intuition for Prob. Relational models CPSC 322, Lecture 33 Slide 4 A customer C1 will / will not recommend a book B1 depending on the book quality, and the customer honesty and kindness When you have two customers and two books…..

CPSC 322, Lecture 335 Lecture Overview Motivation and Representation Semantics of Probabilistic Relational Models (PRMs) Classes and Relations Attributes and Reference Slots Full Relational Schema and its Instances Fixed vs. Probabilistic Attributes Relational Skeleton and its Completion Instance Inverse Slot and Slot chain

Motivation for PRMs Most real-world data are stored in relational DBMS Combine advantages of relational logic & Bayesian networks: –natural domain modeling: objects, properties, relations; –generalization over a variety of situations; –compact, natural probability models. Integrate uncertainty with relational model: –properties of domain entities can depend on properties of related entities; –uncertainty over relational structure of domain. CPSC 322, Lecture 336

Limitations of Bayesian Networks A Bayesian networks (BNs) represents a pre-specified set of attributes/variables whose relationship to each other is fixed in advance. Course.502.Difficulty Professor.Mary-Ability Student.Joe.Ability Student.Joe.502.Grade Student.Joe.502.Satisfaction CPSC 322, Lecture 337

How PRMs extend BNs? 1.PRMs conceptually extend BNs to allow the specification of a probability model for classes of objects rather than a fixed set of simple attributes 2.PRMs also allow properties of an entity to depend probabilistically on properties of other related entities CPSC 322, Lecture 338

9 Lecture Overview Motivation and Representation Semantics of Probabilistic Relational Models (PRMs) Classes and Relations Attributes and Reference Slots Full Relational Schema and its Instances Fixed vs. Probabilistic Attributes Relational Skeleton and its Completion Instance Inverse Slot and Slot chain

Mapping PRMs from Relational Models The representation of PRMs is a direct mapping from that of relational databases A relational model consists of a set of classes X 1,…,X n and a set of relations R 1,…,R m, where each relation R i is typed CPSC 322, Lecture 3310

Course Registration Student University Domain Example – Classes and relations Professor M M M 1 M 1 Indicates many-to- many relationship Indicates one-to-many relationship CPSC 322, Lecture 33 11

Mapping PRMs from Relational Models: attributes Each class or entity type (corresponding to a single relational table) is associated with a set of attributes A (X i ) (at least one of which is a primary key) Course Rating Difficulty Name CPSC 322, Lecture 3312

Each class or entity type is also associated with a set of reference slots R (X) Course Instructor Rating Difficulty Name correspond to attributes that are foreign keys (key attributes of another table) X.ρ, is used to denote reference slot ρ of X. Mapping PRMs from Relational Models: reference slot Professor Popularity Teaching-Ability Name CPSC 322, Lecture 33 13

Course Instructor Rating Difficulty Name Registration Course Student Grade Satisfaction RegID Student Intelligence Ranking Name University Domain Example – Full Relational Schema Professor Popularity Teaching-Ability Name Primary keys are indicated by a blue rectangle Underlined attributes are reference slots of the class Dashed lines indicate the types of objects referenced M M M 1 M 1 Indicates many-to- many relationship Indicates one-to-many relationship CPSC 322, Lecture 3314

Recommendation Book Name Customer Honesty Kindness Name Book Recommendation Domain – Full Relational Schema Book Quality Title Customer Rating CPSC 322, Lecture 3315

Recommendation Book Name Customer Honesty Kindness Name Book Recommendation Domain – Full Relational Schema Book Quality Title Customer Rating CPSC 322, Lecture 3316

PRM Semantics: Attribute values Each attribute A j  A (X i ) takes on values in some fixed domain of possible values denoted V(A j ). We assume that value spaces are finite Attribute A of class X is denoted X.A E.g., V(Student.Intelligence) might be { high, low } CPSC 322, Lecture 3317

PRM Semantics: Instance of Schema An instance I of a schema/model specifies a set of objects x, partitioned into classes; such that there is –a value for each attribute x.A –and a value for each reference slot x.ρ CPSC 322, Lecture 3318

University Domain Example – An Instance of the Schema One professor is the instructor for both courses Jane Doe is registered for only one course, Phil101, while the other student is registered for both courses Registration RegID #5639 Grade A Satisfaction 3 Registration RegID #5639 Grade A Satisfaction 3 Course Name Phil101 Difficulty low Rating high Student Name Jane Doe Intelligence high Ranking average Professor Name Prof. Gump Popularity high Teaching-Ability medium Student Name Jane Doe Intelligence high Ranking average Registration RegID #5639 Grade A Satisfaction 3 Course Name Phil101 Difficulty low Rating high CPSC 322, Lecture 33 19

University Domain Example – Another Instance of the Schema There are two professors instructing a course There are three students in the Phil201 course Registration RegID #5639 Grade A Satisfaction 3 Registration RegID #5639 Grade A Satisfaction 3 Student Name Jane Doe Intelligence high Ranking average Professor Name Prof. Gump Popularity high Teaching-Ability medium Student Name Jane Doe Intelligence high Ranking average Registration RegID #5723 Grade A Satisfaction 3 Course Name Phil201 Difficulty low Rating high Professor Name Prof. Vincent Popularity high Teaching-Ability high Student Name John Doe Intelligence high Ranking average CPSC 322, Lecture 3320

PRM Semantics: fixed vs. prob. attributes Some attributes, such as Name or Social Security Number, are fully determined. Such attributes are labeled as fixed. Assume that they are known in any instantiation of the schema The other attributes are called probabilistic. We may be uncertain about their value CPSC 322, Lecture 3321

Course Instructor Rating Difficulty Name Registration Course Student Grade Satisfaction RegID Student Intelligence Ranking Name University Domain Example – fixed vs. probabilistic attributes Professor Popularity Teaching-Ability Name M M M 1 1 M Which ones are fixed? Which are probabilistic? CPSC 322, Lecture 33 22

Course Instructor Rating Difficulty Name Registration Course Student Grade Satisfaction RegID Student Intelligence Ranking Name University Domain Example – fixed vs. probabilistic attributes Professor Popularity Teaching-Ability Name Fixed attributes are shown in regular font Fixed attributes are shown in regular font Probabilistic attributes are shown in italic Probabilistic attributes are shown in italic M M M 1 1 M CPSC 322, Lecture 33 23

PRM Semantics: Skeleton Structure A skeleton structure σ of a relational schema is a partial specification of an instance of the schema. It specifies –set of objects for each class, –values of the fixed attributes of these objects, –relations that hold between the objects The values of probabilistic attributes are left unspecified A completion I of the skeleton structure σ extends the skeleton by also specifying the values of the probabilistic attributes CPSC 322, Lecture 3324

University Domain Example – Relational Skeleton Registration RegID #5639 Grade A Satisfaction 3 Registration RegID #5639 Grade A Satisfaction 3 Course Name Phil101 Difficulty low Rating high Student Name Jane Doe Intelligence high Ranking average Professor Name Prof. Gump Popularity ??? Teaching-Ability ??? Student Name Jane Doe Intelligence ??? Ranking ??? Registration RegID #5639 Grade ??? Satisfaction ??? Course Name Phil101 Difficulty ??? Rating ??? CPSC 322, Lecture 33 25

Registration Name #5639 Grade A Satisfaction 3 Registration Name #5639 Grade A Satisfaction 3 Course Name Phil101 Difficulty low Rating high Student Name Jane Doe Intelligence high Ranking average Professor Name Prof. Gump Popularity high Teaching-Ability medium Student Name Jane Doe Intelligence high Ranking average Registration Name #5639 Grade A Satisfaction 3 Course Name Phil101 Difficulty low Rating high University Domain Example – The Completion Instance I CPSC 322, Lecture 33 26

University Domain Example – Another Relational Skeleton Registration RegID #5639 Grade A Satisfaction 3 Registration RegID #5639 Grade A Satisfaction 3 Student Name Jane Doe Intelligence high Ranking average Professor Name Prof. Gump Popularity high Teaching-Ability ??? Student Name Jane Doe Intelligence high Ranking average Registration RegID #5723 Grade ??? Satisfaction ??? Course Name Phil201 Difficulty ??? Rating ??? Professor Name Prof. Vincent Popularity ??? Teaching-Ability ??? Student Name John Doe Intelligence ??? Ranking ??? PRMs allow multiple possible skeletons CPSC 322, Lecture 33 27

University Domain Example – The Completion Instance I Registration RegID #5639 Grade A Satisfaction 3 Registration RegID #5639 Grade A Satisfaction 3 Student Name Jane Doe Intelligence high Ranking average Professor Name Prof. Gump Popularity high Teaching-Ability medium Student Name Jane Doe Intelligence high Ranking average Registration RegID #5723 Grade A Satisfaction 3 Course Name Phil201 Difficulty low Rating high Professor Name Prof. Vincent Popularity high Teaching-Ability high Student Name John Doe Intelligence high Ranking average PRMs also allow multiple possible instances and values CPSC 322, Lecture 33 28

PRM Semantics: inverse slot For each reference slot ρ, we define an inverse slot, ρ -1, which is the inverse function of ρ Course Instructor Rating Difficulty Name Registration Course Student Grade Satisfaction RegID Student Intelligence Ranking Name Professor Popularity Teaching-Ability Name M M M 1 1 M CPSC 322, Lecture 33 29

PRM Semantics: slot chain A slot chain τ=ρ 1..ρ m is a sequence of reference slots that defines functions from objects to other objects to which they are indirectly related. Student.Registered-In.Course.Instructor can be used to denote…… Course Instructor Rating Difficulty Name Registration Course Student Grade Satisfaction RegID Student Intelligence Ranking Name Professor Popularity Teaching-Ability Name M M M 1 1 M CPSC 322, Lecture 3330

Slot chains will allow us… To specify probabilistic dependencies between attributes of related entities CPSC 322, Lecture Course Instructor Rating Difficulty Name Registration Course Student Grade Satisfaction RegID Professor Popularity Teaching-Ability Name M M M 1 M

CPSC 322, Lecture 33 Learning Goals for today’s class You can: Explain the need for Probabilistic relational model Explain how PRMs generalize BNs Define a Full Relational Schema and its instances Define a Relational Skeleton and its completion Instances Define an inverse slot and an slot chain 32

Next class on Wed Finish Probabilistic Relational Models Probabilistic Model Dependency Structure Aggregation Parameters Class dependency Graph Inference CPSC 322, Lecture 3333 Assignment-4 due !