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.

Slides:



Advertisements
Similar presentations
Three-Step Database Design
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.
BAYESIAN NETWORKS. Bayesian Network Motivation  We want a representation and reasoning system that is based on conditional independence  Compact yet.
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 502, Lecture 11Slide 1 Introduction to Artificial Intelligence (AI) Computer Science cpsc502, Lecture 11 Oct, 18, 2011.
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.
CSE 574 – Artificial Intelligence II Statistical Relational Learning Instructor: Pedro Domingos.
CPSC 322, Lecture 28Slide 1 Reasoning Under Uncertainty: More on BNets structure and construction Computer Science cpsc322, Lecture 28 (Textbook Chpt 6.3)
CPSC 322, Lecture 17Slide 1 Planning: Representation and Forward Search Computer Science cpsc322, Lecture 17 (Textbook Chpt 8.1 (Skip )- 8.2) February,
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 22Slide 1 Logic: Domain Modeling /Proofs + Top-Down Proofs Computer Science cpsc322, Lecture 22 (Textbook Chpt 5.2) March, 8, 2010.
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.
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,
Slide 1 Logic: Domain Modeling /Proofs + Top-Down Proofs Jim Little UBC CS 322 – CSP October 22, 2014.
CPSC 322, Lecture 22Slide 1 Logic: Domain Modeling /Proofs + Top-Down Proofs Computer Science cpsc322, Lecture 22 (Textbook Chpt 5.2) Oct, 26, 2010.
Department of Computer Science Undergraduate Events More
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.
Lectures 2 – Oct 3, 2011 CSE 527 Computational Biology, Fall 2011 Instructor: Su-In Lee TA: Christopher Miles Monday & Wednesday 12:00-1:20 Johnson Hall.
V13: Causality Aims: (1) understand the causal relationships between the variables of a network (2) interpret a Bayesian network as a causal model whose.
Probabilistic Models of Object-Relational Domains
CPSC 422, Lecture 11Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 11 Oct, 2, 2015.
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.
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.
Learning Statistical Models From Relational Data Lise Getoor University of Maryland, College Park Includes work done by: Nir Friedman, Hebrew U. Daphne.
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 26Slide 1 Reasoning Under Uncertainty: Belief Networks Computer Science cpsc322, Lecture 27 (Textbook Chpt 6.3) Nov, 13, 2013.
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
Decision Theory: Single Stage Decisions
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 17
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 18
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
Decision Theory: Sequential Decisions
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 17
Decision Theory: Single Stage Decisions
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
Label and Link Prediction in Relational Data
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 18
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 422, Lecture 33Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 33 Apr, 8, 2015 Slide source: from David Page (MIT) (which were from From Lise Getoor, Nir Friedman, Daphne Koller, and Avi Pfeffer) and from Lise Getoor

CPSC 422, Lecture 332 Lecture Overview Recap Motivation and Representation for Probabilistic Relational Models (PRMs) Full Relational Schema and its Instances Relational Skeleton and its Completion Instances Probabilistic Model of PRMs Dependency Structure Parameters Cycles (time permitting)

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

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 422, Lecture 334

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 422, Lecture 33 5

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 422, Lecture 33 6

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 422, Lecture 33 7

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 422, Lecture 33 8

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 422, Lecture 339

University Domain Example – 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 422, Lecture 33 10

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 422, Lecture 33 11

CPSC 422, Lecture 3312 Lecture Overview Recap Motivation and Representation for Probabilistic Relational Models (PRMs) Full Relational Schema and its Instances Relational Skeleton and its Completion Instances Probabilistic Model of PRMs Dependency Structure Parameters

PRMs: Probabilistic Model The probabilistic model consists of two components: the qualitative dependency structure, S, and the parameters associated with it, θ S The dependency structure is defined by associating with each attribute X.A a set of parents Pa(X.A); parents are attributes that are “direct influences” on X.A. This dependency holds for any object of class X CPSC 422, Lecture 3313

Dependencies within a class The prob. attribute X.A can depend on another probabilistic attribute B of X. This induces a corresponding dependency for individual objects CPSC 422, Lecture 3314 Registration Grade Satisfaction Registration RegID #5723 Grade …. Satisfaction ….. Registration Course Student Grade Satisfaction RegID

Dependencies across classes The attribute X.A can also depend on attributes of related objects X.τ.B, where τ is a slot chain CPSC 422, Lecture 3315 Professor Popularity Teaching-Ability Registration Grade Satisfaction Course Instructor Rating Difficulty Name Registration Course Student Grade Satisfaction RegID Professor Popularity Teaching-Ability Name M M M 1 M

Possible PRM Dependency Structure for the University Domain Edges from one class to another are routed through slot-chains Student Intelligence Ranking Course Rating Difficulty Professor Popularity Teaching-Ability Registration Grade Satisfaction M M MM 1 1 Edges correspond to probabilistic dependency for objects in that class CPSC 422, Lecture 33 16

Let’s derive the Corresponding “grounded” Dependency Structure for this Skeleton Registration RegID #3 Grade ??? Satisfaction ??? Registration RegID #5 Grade ??? Satisfaction ??? Course Name CS101 Difficulty ?????? Rating ?? Student Name Jane Doe Intelligence high Ranking average Professor Name Prof. Gump Popularity ??? Teaching-Ability ??? Student Name Sue Chu Intelligence ??? Ranking ??? Registration RegID #6 Grade ??? Satisfaction ??? Course Name Phil101 Difficulty ??? Rating ??? CPSC 422, Lecture Professor Name Prof. Vincent Popularity ??? Teaching-Ability ???

Parameters of PRMs A PRM contains a conditional probability distribution (CPD) P(X.A|Pa(X.A)) for each attribute X.A of each class More precisely, let U be the set of parents of X.A. For each tuple of values u  V(U), the CPD specifies a distribution P(X.A|u) over V(X.A). The parameters in all of these CPDs comprise θ S CPSC 422, Lecture 3318

Now, what are the parameters θ S Student Intelligence Ranking Course Rating Difficulty Professor Popularity Teaching-Ability Registration Grade Satisfaction M M M M 1 1 D.I A B C h,h h,l l,h l,l CPSC 422, Lecture 3319

How to specify cond. Prob. When # of parents can vary? The notion of aggregation from database theory gives us the tool to address this issue; i.e., x.a will depend probabilistically on some aggregate property of this set CPSC 422, Lecture 3320

Aggregation in PRMs Examples of aggregation are: the mode of the set (most frequently occurring value); mean value of the set (if values are numerical); median, maximum, or minimum (if values are ordered); cardinality of the set; etc. CPSC 422, Lecture 3321

PRM Dependency Structure with aggregations Student Intelligence Ranking Course Rating Difficulty Professor Popularity Teaching-Ability Registration Grade Satisfaction M M MM 1 1 AVG The student’s ranking depends on the average of his grades A student may take multiple courses A course rating depends on the average satisfaction of students in the course CPSC 422, Lecture AVG The same course can be taught by multiple profs A course satisfaction depends on the teaching abilities of its instructors

CPDs in PRMs Student Intelligence Ranking Course Rating Difficulty Professor Popularity Teaching-Ability Registration Grade Satisfaction M M M M 1 1 AVG D.I A B C h,h h,l l,h l,l avg l m h A B C CPSC 422, Lecture 3323

JPD in PRMs Given a skeleton structure σ for our schema, we can apply these local conditional probabilities to define a JPD (joint probability distribution) over all completions of the skeleton Note that the objects and relations between objects in a skeleton are always specified by σ, hence we are disallowing uncertainty over the relational structure of the model CPSC 422, Lecture 3324

Parameter Sharing / CPTs reuse, where else? Temporal Models Because of the stationery assumption! CPSC 422, Lecture 3325

Final Issue…. To define a coherent probabilistic model, we must ensure that our probabilistic dependencies are….. CPSC 422, Lecture 33 26

Class Dependency Graph for the University Domain Course.Difficulty Professor.Teaching-Ability Student.Ranking Student.Intelligence Registration.Grade Professor.Popularity Course.Rating Registration.Satisfaction CPSC 422, Lecture 3327

Ensuring Acyclic Dependencies In general, however, a cycle in the class dependency graph does not imply that all skeletons induce cyclic dependencies A model may appear to be cyclic at the class level, however, this cyclicity is always resolved at the level of individual objects The ability to guarantee that the cyclicity is resolved relies on some prior knowledge about the domain. The user can specify that certain slots are guaranteed acyclic CPSC 422, Lecture 3328

Relational Schema for the Genetics Domain Person P-Chromosome Name Blood Test Patient Results Contaminated BT-ID 1 M Blood-Type M-Chromosome CPSC 422, Lecture 3329

Dependency Graph for Genetics Domain Person.M-chromosomePerson.P-chromosome Person.BloodType BloodTest.Contaminated BloodTest.Result CPSC 422, Lecture 3330

PRM for the Genetics Domain Person M-chromosome P-chromosome BloodType BloodTest Contaminated Result Person M-chromosome P-chromosome BloodType Person M-chromosome P-chromosome BloodType (Father)(Mother) CPSC 422, Lecture 33 31

Dependency Graph for Genetics Domain Person.M-chromosomePerson.P-chromosome Person.BloodType BloodTest.Contaminated BloodTest.Result Dashed edges correspond to “guaranteed acyclic” dependencies CPSC 422, Lecture 3332

CPSC 422, Lecture 33 Learning Goals for today’s class You can: Build the grounded Bnet, given a Relational Skeleton, a dependency structure, and the corresponding parameters Define and apply guaranteed acyclicity 33

422 big picture 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 Description Logics/ Ontologies Temporal rep. Applications of AI More sophisticated reasoning Undirected Graphical Models Conditional Random Fields Reinforcement Learning Representation Reasoning Technique Prob relational models Prob CFG Markov Logics Hybrid CPSC 422, Lecture 33Slide 34

Next class on Fri Finish Markov Logics Beyond 322/422 (ML + grad courses) Watson…. CPSC 422, Lecture 3335 Fill out on-line Teaching Evaluation