probml/pmtk3

BayesLinRegDemo2d likelihood calculation seems wrong

xeonqq opened this issue · 0 comments

xeonqq commented

https://github.com/probml/pmtk3/blob/dfe84aabf65d4e5133a62ac1f4722bf3834a3327/demos/bayesLinRegDemo2d.m#LL46C59-L46C71
It should be

likelihood = @(W) uniGaussPdf(ytrain(i),W*[1;xtrain(i)],likelihoodSD.^2);

I think