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

Add gaussian example to C++ Examples (related to #37) #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

qacwnfq
Copy link

@qacwnfq qacwnfq commented Aug 30, 2021

In #37 I opened an issue that the example gaussian.py does not produce a sampled log_Z which is close to the analytical log_Z. In order to further debug this, I added the same example to the C++ version where I get:

Analytical solution: -11.5129283315
log(Z) = -11.838912412347822
Information = 4.604287059911951 nats.
Effective sample size = 34762.69919895431

When checking the posterior samples everything looks perfect also:
image

So the C++-version seems to work. I will now move on to explicitly check the posteriors for the python example.
I mainly added this so that my code is visible and maybe it will help someone else in the future.

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.

1 participant