Skip to Content
Learning Probabilistic Graphical Models in R
book

Learning Probabilistic Graphical Models in R

by David Bellot
April 2016
Beginner to intermediate
250 pages
5h 38m
English
Packt Publishing
Content preview from Learning Probabilistic Graphical Models in R

Mixture of experts

The idea behind mixture of experts is to use a set of linear regressions for each sub space of the original data space and combine them with weighting functions that will successively give weight to each linear regression.

Consider the following example dataset, which we generate with the following toy code:

x1=runif(40,0,10)
x2=runif(40,10,20)

e1 = rnorm(20,0,2)
e2 = rnorm(20,0,3)
 
y1 = 1+2.5*x1 + e1
y2 = 35+-1.5*x2 + e2
 
xx=c(x1,x2)
yy=c(y1,y2)

Plotting the result, and doing a simple linear regression on it, gives the following:

Mixture of experts

Obviously, the linear regression does not capture the behavior of the data at all. It barely captures ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Bayesian Models with R

Learning Bayesian Models with R

Hari Manassery Koduvely
Deep Learning for Chest Radiographs

Deep Learning for Chest Radiographs

Yashvi Chandola, Jitendra Virmani, H.S Bhadauria, Papendra Kumar

Publisher Resources

ISBN: 9781784392055Supplemental Content