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.

Slides:



Advertisements
Similar presentations
Decision Theory: Sequential Decisions Computer Science cpsc322, Lecture 34 (Textbook Chpt 9.3) Nov, 28, 2012.
Advertisements

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.
CSE 574 – Artificial Intelligence II Statistical Relational Learning Instructor: Pedro Domingos.
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.
1 Bayesian Networks Chapter ; 14.4 CS 63 Adapted from slides by Tim Finin and Marie desJardins. Some material borrowed from Lise Getoor.
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,
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.
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 422, Lecture 35Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 34 Dec, 4, 2015.
CPSC 322, Lecture 26Slide 1 Reasoning Under Uncertainty: Belief Networks Computer Science cpsc322, Lecture 27 (Textbook Chpt 6.3) Nov, 13, 2013.
Daphne Koller Template Models Plate Models Probabilistic Graphical Models Representation.
Please Also Complete Teaching Evaluations
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 33
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 12
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 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 12
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 3
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 7
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 12
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 14
Presentation transcript:

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 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

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 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 ??? 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 –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 33 13

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 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 ???

CPSC 422, Lecture 3318

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 3319

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 3320

Problem with some parameters θ S Student Intelligence Ranking Course Rating Difficulty Professor Popularity Teaching-Ability Registration Grade Satisfaction M M M M 1 1 CPSC 422, Lecture ???

Problem with some parameters θ S Student Intelligence Ranking Course Rating Difficulty Professor Popularity Teaching-Ability Registration Grade Satisfaction M M M M 1 1 CPSC 422, Lecture When the slot chain τ is not guaranteed to be single-valued, we must specify the probabilistic dependence of x.A on the set {y.B:y  x.τ}

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 3323

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 3324

PRM Dependency Structure with aggregations Student Intelligence Ranking Course Rating Difficulty Professor Popularity Teaching-Ability Registration Grade Satisfaction M M MM 1 1 AGG 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 AGG 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 AGG D.I A B C h,h h,l l,h l,l agg l m h A B C CPSC 422, Lecture 3326

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 3327

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

Final Issue: Cycles To define a coherent probabilistic model, we must ensure that our probabilistic dependencies are acyclic A dependency structure S is acyclic relative to a skeleton σ if the directed graph over all the parents of the variables x.A is acyclic If S is acyclic relative to σ, then the following defines a distribution over completions I of σ: P(I|σ, S,θ S ) = CPSC 422, Lecture 33 29

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

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 3331

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 3332

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 3333

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

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 35

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 3336

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 37

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 38

Last class on Fri Beyond 322/422 (ML + grad courses) Watson…. Final Exam CPSC 422, Lecture 3339 Fill out on-line Teaching Evaluation