DOC PREVIEW
CMU CS 10701 - Bayesian Networks –(Structure) Learning

This preview shows page 1-2-3-4-5-6-39-40-41-42-43-80-81-82-83-84-85 out of 85 pages.

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

Unformatted text preview:

©2005-2007 Carlos GuestrinBayesian Networks–(Structure) LearningMachine Learning – 10701/15781Carlos GuestrinCarnegie Mellon UniversityApril 2nd, 2007©2005-2007 Carlos GuestrinReview Bayesian Networks Compact representation forprobability distributions Exponential reduction in numberof parameters Fast probabilistic inferenceusing variable elimination Compute P(X|e) Time exponential in tree-width,not number of variables Today Learn BN structureFluAllergySinusHeadacheNose©2005-2007 Carlos GuestrinLearning Bayes netsMissing dataFully observabledataUnknown structureKnown structurex(1)… x(m)Datastructure parametersCPTs –P(Xi| PaXi)©2005-2007 Carlos GuestrinLearning the CPTsx(1)… x(m)DataFor each discrete variable Xi©2005-2007 Carlos GuestrinInformation-theoretic interpretationof maximum likelihood Given structure, log likelihood of data:FluAllergySinusHeadacheNose©2005-2007 Carlos GuestrinInformation-theoretic interpretationof maximum likelihood Given structure, log likelihood of data:FluAllergySinusHeadacheNose©2005-2007 Carlos GuestrinInformation-theoretic interpretationof maximum likelihood 2 Given structure, log likelihood of data:FluAllergySinusHeadacheNose©2005-2007 Carlos GuestrinDecomposable score Log data likelihood Decomposable score: Decomposes over families in BN (node and its parents) Will lead to significant computational efficiency!!! Score(G : D) = ∑i FamScore(Xi|PaXi : D)©2005-2007 Carlos GuestrinHow many trees are there?Nonetheless – Efficient optimal algorithm finds best tree©2005-2007 Carlos GuestrinScoring a tree 1: equivalent trees©2005-2007 Carlos GuestrinScoring a tree 2: similar trees©2005-2007 Carlos GuestrinChow-Liu tree learning algorithm 1 For each pair of variables Xi,Xj Compute empirical distribution: Compute mutual information: Define a graph Nodes X1,…,Xn Edge (i,j) gets weight©2005-2007 Carlos GuestrinChow-Liu tree learning algorithm 2 Optimal tree BN Compute maximum weightspanning tree Directions in BN: pick anynode as root, breadth-first-search defines directions©2005-2007 Carlos GuestrinCan we extend Chow-Liu 1 Tree augmented naïve Bayes (TAN)[Friedman et al. ’97] Naïve Bayes model overcounts, becausecorrelation between features notconsidered Same as Chow-Liu, but score edges with:©2005-2007 Carlos GuestrinCan we extend Chow-Liu 2 (Approximately learning) modelswith tree-width up to k [Narasimhan & Bilmes ’04] But, O(nk+1)… and more subtleties©2005-2007 Carlos GuestrinWhat you need to know aboutlearning BN structures so far Decomposable scores Maximum likelihood Information theoretic interpretation Best tree (Chow-Liu) Best TAN Nearly best k-treewidth (in O(Nk+1))©2005-2007 Carlos GuestrinScoring general graphical models –Model selection problemData<x_1^{(1)},…,x_n^{(1)}>…<x_1^{(m)},…,x_n^{(m)}>FluAllergySinusHeadacheNoseWhat’s the best structure?The more edges, the fewer independence assumptions,the higher the likelihood of the data, but will overfit…©2005-2007 Carlos GuestrinMaximum likelihood overfits! Information never hurts: Adding a parent always increases score!!!©2005-2007 Carlos GuestrinBayesian score avoids overfitting Given a structure, distribution over parameters Difficult integral: use Bayes information criterion(BIC) approximation (equivalent as M! 1) Note: regularize with MDL score Best BN under BIC still NP-hard©2005-2007 Carlos GuestrinHow many graphs are there?©2005-2007 Carlos GuestrinStructure learning for general graphs In a tree, a node only has one parent Theorem: The problem of learning a BN structure with at most dparents is NP-hard for any (fixed) d¸2 Most structure learning approaches use heuristics Exploit score decomposition (Quickly) Describe two heuristics that exploit decompositionin different ways©2005-2007 Carlos GuestrinLearn BN structure using localsearchStarting from Chow-Liu treeLocal search,possible moves:• Add edge• Delete edge• Invert edgeScore using BIC©2005-2007 Carlos GuestrinWhat you need to know aboutlearning BNs Learning BNs Maximum likelihood or MAP learns parameters Decomposable score Best tree (Chow-Liu) Best TAN Other BNs, usually local search with BIC score©2005-2007 Carlos GuestrinUnsupervised learning orClustering –K-meansGaussian mixture modelsMachine Learning – 10701/15781Carlos GuestrinCarnegie Mellon UniversityApril 2nd, 2007©2005-2007 Carlos GuestrinSome Data©2005-2007 Carlos GuestrinK-means1. Ask user how manyclusters they’d like.(e.g. k=5)©2005-2007 Carlos GuestrinK-means1. Ask user how manyclusters they’d like.(e.g. k=5)2. Randomly guess kcluster Centerlocations©2005-2007 Carlos GuestrinK-means1. Ask user how manyclusters they’d like.(e.g. k=5)2. Randomly guess kcluster Centerlocations3. Each datapoint findsout which Center it’sclosest to. (Thuseach Center “owns”a set of datapoints)©2005-2007 Carlos GuestrinK-means1. Ask user how manyclusters they’d like.(e.g. k=5)2. Randomly guess kcluster Centerlocations3. Each datapoint findsout which Center it’sclosest to.4. Each Center findsthe centroid of thepoints it owns©2005-2007 Carlos GuestrinK-means1. Ask user how manyclusters they’d like.(e.g. k=5)2. Randomly guess kcluster Centerlocations3. Each datapoint findsout which Center it’sclosest to.4. Each Center findsthe centroid of thepoints it owns…5. …and jumps there6. …Repeat untilterminated!©2005-2007 Carlos GuestrinUnsupervised Learning You walk into a bar.A stranger approaches and tells you:“I’ve got data from k classes. Each class produces observations with a normal distribution and variance σ2¢I . Standard simple multivariate gaussian assumptions. I can tell you all the P(wi)’s .” So far, looks straightforward.“I need a maximum likelihood estimate of the µi’s .“ No problem:“There’s just one thing. None of the data are labeled. Ihave datapoints, but I don’t know what class they’re from (any of them!) Uh oh!!©2005-2007 Carlos GuestrinGaussian Bayes ClassifierReminder)()()|()|(xxxpiyPiypiyP====( ) ( ))(21exp||||)2(1)|(2/12/xìxÓìxÓxppiyPiikiTikim!"#$%&'''==(How do we deal with that?©2005-2007 Carlos GuestrinPredicting wealth from age©2005-2007 Carlos GuestrinPredicting wealth from age©2005-2007 Carlos GuestrinLearning modelyear ,mpg --->


View Full Document

CMU CS 10701 - Bayesian Networks –(Structure) Learning

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 Bayesian Networks –(Structure) Learning
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 Bayesian Networks –(Structure) Learning 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 Bayesian Networks –(Structure) Learning 2 2 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?