-
-
Notifications
You must be signed in to change notification settings - Fork 269
SMC update #243
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
SMC update #243
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
@@ -16,18 +16,19 @@ | |||
"name": "stdout", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line #4. np.mean(idata_04.posterior["X"] > 0).item()
not sure what this mean is doing and it looks like it's not being printed either.
Reply via ReviewNB
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is computing the relative weight w1. I have added a string to make it clear
@@ -16,18 +16,19 @@ | |||
"name": "stdout", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit of a side note, but is this trace.report.nsteps
lost when converting to InferenceData?
Reply via ReviewNB
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, but this has already been fixed in PyMC 4.0
Fixes #242. The example in the notebook was outdated as it was showing sampling with the metropolis kernel which was superseeded for the independent Metropolis Hastings kernel (IMH). This also update the discussion about the diagnostics. Additionally this incorporate at least some of the recommendations from the Jupyter Notebook Style Guide.
related to #124