Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BayesLinRegDemo2d likelihood calculation seems wrong #143

Open
xeonqq opened this issue Jun 13, 2023 · 0 comments
Open

BayesLinRegDemo2d likelihood calculation seems wrong #143

xeonqq opened this issue Jun 13, 2023 · 0 comments

Comments

@xeonqq
Copy link

xeonqq commented Jun 13, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant