DOC PREVIEW
CMU CS 10701 - The General GMM assumption

This preview shows page 1-2-3-26-27-28 out of 28 pages.

Save
View full document
Premium Document
Do you want full access? Go Premium and unlock all 28 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

EM Machine Learning 10701 15781 Carlos Guestrin Carnegie Mellon University 2005 2009 Carlos Guestrin November 23rd 2009 1 2005 2007 Carlos Guestrin The General GMM assumption There are k components Component i has an associated mean vector mi Each component generates data from a Gaussian with mean mi and covariance matrix i Each data point is generated according to the following recipe 2 1 3 1 Pick a component at random Choose component i with probability P y i 2 Datapoint N mi i 2005 2009 Carlos Guestrin 2 1 Expectation Maximalization 2005 2009 Carlos Guestrin 3 The E M Algorithm We ll get back to unsupervised learning soon But now we ll look at an even simpler case with hidden information The EM algorithm Can do trivial things such as the contents of the next few slides An excellent way of doing our unsupervised learning problem as we ll see Many many other uses including learning BNs with hidden data 2005 2009 Carlos Guestrin 4 2 Silly Example Let events be grades in a class P A w1 Gets an A P B w2 Gets a B w3 Gets a C P C 2 P D 3 w4 Gets a D Note 0 1 6 Assume we want to estimate from data In a given class there were a A s b B s c C s d D s What s the maximum likelihood estimate of given a b c d 5 2005 2009 Carlos Guestrin Trivial Statistics P A P B P a b c d P C 2 P D 3 K a b 2 c 3 d log P a b c d log K alog blog clog 2 dlog 3 FOR MAX LIKE SET LogP 0 LogP b 2c 3d 0 2 1 2 3 b c Gives max like 6 b c d So if class got Max like A B C D 14 6 9 10 1 10 2005 2009 Carlos Guestrin 6 3 Same Problem with Hidden Information REMEMBER P A Someone tells us that Number of High grades A s B s h Number of C s c Number of D s d P B P C 2 P D 3 What is the max like estimate of now 7 2005 2009 Carlos Guestrin Same Problem with Hidden Information Someone tells us that Number of High grades A s B s h Number of C s c Number of D s d REMEMBER P A P B P C 2 P D 3 What is the max like estimate of now We can answer this question circularly EXPECTATION If we know the value of we could compute the expected value of a and b 1 2 h Since the ratio a b should be the same as the ratio a b h 1 1 2 2 MAXIMIZATION If we know the expected values of a and b we could compute the maximum likelihood value of 2005 2009 Carlos Guestrin b c 6 b c d 8 4 E M for our Trivial Problem REMEMBER P A P B P C 2 We begin with a guess for We iterate between EXPECTATION and MAXIMALIZATION to improve our estimates of and a and b Define P D 3 t the estimate of on the t th iteration b t the estimate of b on t th iteration 0 initial guess b t t 1 t h b t 1 t 2 E step b t c 6 b t c d M step max like est of given b t Continue iterating until converged Good news Converging to local optimum is assured 2005 2009 Carlos Guestrin Bad news I said local optimum 9 E M Convergence Convergence proof based on fact that Prob data must increase or remain same between each iteration NOT OBVIOUS But it can never exceed 1 OBVIOUS So it must therefore converge OBVIOUS In our example suppose we had h 20 c 10 d 10 0 0 Convergence is generally linear error decreases by a constant factor each time step t t b t 0 0 0 1 0 0833 2 857 2 0 0937 3 158 3 0 0947 3 185 4 0 0948 3 187 5 0 0948 3 187 6 0 0948 3 187 2005 2009 Carlos Guestrin 10 5 Back to Unsupervised Learning of GMMs a simple case A simple case We have unlabeled data x1 x2 xm We know there are k classes We know P y1 P y2 P y3 P yk We don t know 1 2 k We can write P data 1 k p x1 x m 1 k m p x j 1 k j 1 m k p x j i P y i j 1 i 1 m k 1 2 exp 2 x j i P y i 2 j 1 i 1 2005 2009 Carlos Guestrin 11 EM for simple case of GMMs The E step If we know 1 k easily compute prob point xj belongs to class y i 1 2 p y i x j 1 k exp 2 x j i P y i 2 2005 2009 Carlos Guestrin 12 6 EM for simple case of GMMs The M step If we know prob point xj belongs to class y i MLE for i is weighted average imagine k copies of each xj each with weight P y i xj m P y i x x j i j j 1 m P y i x j j 1 13 2005 2009 Carlos Guestrin E M for GMMs E step Compute expected classes of all datapoints for each class 1 2 p y i x j 1 k exp 2 x j i P y i 2 Just evaluate a Gaussian at xj M step Compute Max like given our data s class membership distributions m P y i x x j i j j 1 m P y i x j j 1 2005 2009 Carlos Guestrin 14 7 E M Convergence EM is coordinate ascent on an interesting potential function Coord ascent for bounded pot func convergence to a local optimum guaranteed See Neal Hinton reading on class webpage This algorithm is REALLY USED And in high dimensional state spaces too E G Vector Quantization for Speech Data 15 2005 2009 Carlos Guestrin 21 0 0 L 0 0 2 L 0 for0 0 2 pi t 0is shorthand 0 0 estimate 0 0 2 3 L of P y i on t th iteration M M M O M M 2 0 0 0 L m 1 0 2 0 0 0 L 0 m E M for axis aligned GMMs Iterate On the t th iteration let our estimates be t 1 t 2 t k t 1 t 2 t k t p1 t p2 t pk t E step Compute expected classes of all datapoints for each class t t P y i x j t pi p x j i i t pi t is shorthand for estimate of P y i on t th iteration Just evaluate a Gaussian at xj M …


View Full Document

CMU CS 10701 - The General GMM assumption

Documents in this Course
lecture

lecture

12 pages

lecture

lecture

17 pages

HMMs

HMMs

40 pages

lecture

lecture

15 pages

lecture

lecture

20 pages

Notes

Notes

10 pages

Notes

Notes

15 pages

Lecture

Lecture

22 pages

Lecture

Lecture

13 pages

Lecture

Lecture

24 pages

Lecture9

Lecture9

38 pages

lecture

lecture

26 pages

lecture

lecture

13 pages

Lecture

Lecture

5 pages

lecture

lecture

18 pages

lecture

lecture

22 pages

Boosting

Boosting

11 pages

lecture

lecture

16 pages

lecture

lecture

20 pages

Lecture

Lecture

20 pages

Lecture

Lecture

39 pages

Lecture

Lecture

14 pages

Lecture

Lecture

18 pages

Lecture

Lecture

13 pages

Exam

Exam

10 pages

Lecture

Lecture

27 pages

Lecture

Lecture

15 pages

Lecture

Lecture

24 pages

Lecture

Lecture

16 pages

Lecture

Lecture

23 pages

Lecture6

Lecture6

28 pages

Notes

Notes

34 pages

lecture

lecture

15 pages

Midterm

Midterm

11 pages

lecture

lecture

11 pages

lecture

lecture

23 pages

Boosting

Boosting

35 pages

Lecture

Lecture

49 pages

Lecture

Lecture

22 pages

Lecture

Lecture

16 pages

Lecture

Lecture

18 pages

Lecture

Lecture

35 pages

lecture

lecture

22 pages

lecture

lecture

24 pages

Midterm

Midterm

17 pages

exam

exam

15 pages

Lecture12

Lecture12

32 pages

lecture

lecture

19 pages

Lecture

Lecture

32 pages

boosting

boosting

11 pages

pca-mdps

pca-mdps

56 pages

bns

bns

45 pages

mdps

mdps

42 pages

svms

svms

10 pages

Notes

Notes

12 pages

lecture

lecture

42 pages

lecture

lecture

29 pages

lecture

lecture

15 pages

Lecture

Lecture

12 pages

Lecture

Lecture

24 pages

Lecture

Lecture

22 pages

Midterm

Midterm

5 pages

mdps-rl

mdps-rl

26 pages

Load more
Download The General GMM assumption
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view The General GMM assumption and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view The General GMM assumption and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?