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

Fix: MvNormal.logp now works with multiple observations. #675

Merged
merged 1 commit into from
Feb 8, 2015

Conversation

kiudee
Copy link
Contributor

@kiudee kiudee commented Feb 8, 2015

The function logp was working only when value was a single observation.
With this fix the function returns the correct element wise log probability for all observations.

Additional fix:
Since tau is a precision matrix, we need to take the inverse of det(tau).

@twiecki
Copy link
Member

twiecki commented Feb 8, 2015

Looks good, thanks!

twiecki added a commit that referenced this pull request Feb 8, 2015
Fix: MvNormal.logp now works with multiple observations.
@twiecki twiecki merged commit 0f8b2d9 into pymc-devs:master Feb 8, 2015
@kiudee kiudee deleted the mvnormal_fix branch March 24, 2015 14:47
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

Successfully merging this pull request may close these issues.

2 participants