-
-
Notifications
You must be signed in to change notification settings - Fork 272
Revised LGCP notebook #93
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
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
View / edit / reply to this conversation on ReviewNB OriolAbril commented on 2021-04-02T14:36:38Z I think we can delete setting the global seed here. |
View / edit / reply to this conversation on ReviewNB OriolAbril commented on 2021-04-02T14:36:38Z I would use ckrapu commented on 2021-04-03T17:27:44Z Got it - changed the setting. |
View / edit / reply to this conversation on ReviewNB OriolAbril commented on 2021-04-02T14:36:39Z Can we use
spp_trace = pm.sample_posterior_predictive(trace, var_names=["intensity_new"], keep_size=True) trace.extend(az.from_dict(posterior_predictive=spp_trace, dims={"intensity_new": ["sample"]})) intensity_samples = trace.posterior_predictive["intensity_new"]
Maybe even exponentiate here when defining
Using this will allow to subset with ckrapu commented on 2021-04-03T17:28:19Z Thanks for the tip! I replaced the subsetting with the relevant Arviz methods. |
View / edit / reply to this conversation on ReviewNB OriolAbril commented on 2021-04-02T14:36:39Z I would leave that you are the author of the notebook, and add to that that you updated it too |
Also note that you have to make sure to run the style checks: https://github.com/pymc-devs/pymc3/wiki/PyMC3-Jupyter-Notebook-Style-Guide |
419cc71
to
b1f16f4
Compare
Got it - changed the setting. View entire conversation on ReviewNB |
Thanks for the tip! I replaced the subsetting with the relevant Arviz methods. View entire conversation on ReviewNB |
This PR updates the log Gaussian Cox process notebook to conform to best practices for documentation as documented in #57 . The following changes were made:
ExpQuad
covariance kernel toMatern52
and the diagonal variance prior was changed fromHalfCauchy
over the standard deviation toInverseGamma
over the variance. This solved an issue with the earlier formulation in which some parameter draws corresponded to nonviable covariance matrices.np.random.randn
was replaced with therng.standard_normal
generator for random numbers.