/
Generative Models Announcements Generative Models Announcements

Generative Models Announcements - PowerPoint Presentation

KingOfTheWorld
KingOfTheWorld . @KingOfTheWorld
Follow
344 views
Uploaded On 2022-08-03

Generative Models Announcements - PPT Presentation

Probability Review Friday 115 Gates B03 Late days To be fair Start the pset early double late days Where we are Machine Learning Variable Based Search CS221 Machine Learning Variable Based ID: 933196

loopy purple joint drugged purple loopy drugged joint variables key idea drugged0 independent 108 network bayesian 576 016 conditional

Share:

Link:

Embed:

Download Presentation from below link

Download Presentation The PPT/PDF document "Generative Models Announcements" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

Slide1

Generative Models

Slide2

Slide3

Announcements

Probability Review (Friday, 1:15 Gates B03)

Late days…

To be fair…

Start the p-set early

double late days.

Slide4

Where we are

Slide5

Machine Learning

Variable Based

Search

CS221

Slide6

Machine Learning

Variable Based

Search

CS221

Slide7

Machine Learning

Search

Variable Based

CS221

Slide8

Slide9

Slide10

Where We Left

O

ff

Slide11

Where We Left

O

ff

Loopy

Not

loopy

Purple

Not Purple

Purple

Not Purple

Drugged

0.108

0.012

0.072

0.008

Not Drugged

0.016

0.064

0.144

0.576

Slide12

Key Idea

If we have a joint distribution over all variables, then given evidence (which could be multiple variables)

E =

e

, we can find the probability of any query variable X

=

x

.

Slide13

These are values in our table!

Y is all variables that aren’t in X or E

Y is all variables that aren’t in E

Key Idea

If we have a joint distribution over all variables, then given evidence (which could be multiple variables)

E =

e

, we can find the probability of any query variable X

=

x

.

Slide14

Key Idea

If we have a joint distribution over all variables, then given evidence (which could be multiple variables)

E =

e

, we can find the probability of any query variable X

=

x

.

Since we know that p(x | e)’s must sum to 1

Slide15

Loopy

Not

loopy

Purple

Not Purple

Purple

Not Purple

Drugged0.108

0.0120.0720.008

Not Drugged0.016

0.0640.1440.576

Key Idea

Slide16

Loopy

Not

loopy

Purple

Not Purple

Purple

Not Purple

Drugged0.108

0.0120.0720.008

Not Drugged0.016

0.0640.1440.576

Key Idea

Slide17

Loopy

Not

loopy

Purple

Not Purple

Purple

Not Purple

Drugged

0.108

0.0120.072

0.008Not Drugged0.016

0.0640.1440.576

Key Idea

Slide18

Loopy

Not

loopy

Purple

Not Purple

Purple

Not Purple

Drugged

0.108

0.0120.072

0.008Not Drugged0.016

0.0640.1440.576

Key Idea

Slide19

Loopy

Not

loopy

Purple

Not Purple

Purple

Not Purple

Drugged0.108

0.0120.0720.008

Not Drugged0.016

0.0640.1440.576

Key Idea

Slide20

Loopy

Not

loopy

Purple

Not Purple

Purple

Not Purple

Drugged0.108

0.0120.0720.008

Not Drugged0.016

0.0640.1440.576

Key Idea

Slide21

Key Idea

Slide22

Our joint

gets

too big

Slide23

Where We Left

O

ff

Loopy

Not

loopy

Purple

Not Purple

Purple

Not Purple

Drugged

0.108

0.012

0.072

0.008

Not Drugged

0.016

0.064

0.144

0.576

Add variable

Snowden location: {

Hong Kong,

Sao Paulo,

Moscow,

Nairobi,

Caracas,

Guantanamo

}

Size of the table is now 2*2*2*6 = 48

But what does Snowden have to do with drugged out

rockstars

?

Really are independent…

Joint is exponential in size.

Slide24

Independence

l

= loopy

p

= purple

d

= drugged

s

=

snowden

If we have two tables, one over

l, p, d and one for s, we could recreate the joint.

Slide25

What else is independent?

Snowden

Drugged

Purple

Loopy

Slide26

What else is independent?

Snowden

Drugged

Purple

Loopy

Purple and loopy?

Slide27

What else is independent?

Snowden

Drugged

Purple

Loopy

Both caused by drugged

Slide28

What else is independent?

Snowden

Drugged

Purple

Loopy

If you know drugged, purple and loopy are independent!

Slide29

Conditional Independence

If you know drugged, purple and loopy are independent!

Slide30

If you know drugged, purple and loopy are independent!

Conditional Independence

Joint

Slide31

This is important!

Slide32

If you know drugged, purple and loopy are independent!

 

Conditional Independence

Joint

Slide33

If you know drugged, purple and loopy are independent!

Conditional Independence

Joint

Slide34

Drugged

Purple

Loopy

No longer need the full joint.

Conditional Independence

Slide35

We only need p(

var

| causes) for each var.

Slide36

Model the world with variables

Slide37

And what causes what

Slide38

Bayesian Network

Slide39

Bayesian Network

Slide40

Bayesian Network

Cough

Fever

Vomit

Flu

Stomach Bug

Slide41

Bayesian Network

Cough

Fever

Vomit

Flu

Stomach Bug

Slide42

Bayesian Network

Cough (c)

Fever (t)

Vomit (v)

Flu (f)

Stomach bug (s)

Slide43

Bayesian Network

Cough (c)

Vomit (v)

Flu (f)

Stomach bug (s)

Joint

Fever (t)

Slide44

Bayesian Network

Joint

Slide45

Bayesian Network

Cough (c)

Fever (t)

Vomit (v)

Flu (f)

Stomach bug (s)

Joint

Slide46

Definition

:

Bayes Net

=

DAG

DAG

: directed acyclic graph (BN’s

structure

)

Nodes

: random variables (typically

discrete

, but methods also exist to handle continuous variables)

Arcs

: indicate probabilistic dependencies between

nodes. Go from cause to effect.

CPDs

:

conditional probability distribution (BN’s

parameters

) Conditional

probabilities at each node, usually stored as a table (conditional probability table, or

CPT)Root nodes are a special case – no parents, so just use priors in CPD:

Formally

Slide47

Slide48

What does NSA do with our data?

Slide49

Real World Problem

Formal Problem

Solution

Model the problem

Apply an Algorithm

Evaluate

The AI Pipeline

Slide50

Slide51

Live Research

Slide52

Research Project

g

3

t

1

t

2

t

3

e

1

e

2

e

3

g

1

g

2

b

i

?

Slide53

Research Project

g

3

t

1

t

2

t

3

e

1

e

2

e

3

g

1

g

2

b

i

?

Slide54

Research Project

g

1

g

1

*

 

?

Slide55

Modeling Surprise

g

1

g

1

*

 

?

Slide56

Competition

Chose top 5

Test how well they predict grades

Select a finalist (gets +)

TA Review

Actually re-grade

Publish?

Slide57

On worst

pset

question

Prize

+

Due Tuesday before class (email staff. Subject: Modeling

Regrades

)

Slide58

Novel Science

Slide59

http://vimeo.com/60381274

Slide60

What does NSA do with our data?

Slide61

Slide62

Research Project

g

3

t

1

t

2

t

3

e

1

e

2

e

3

g

1

g

2

b

i

?

Slide63

Can someone fix this?

Slide64

Peer Graders