-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
Update GP-Latent.ipynb to v4 #413
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
||
+++ | ||
|
||
The `gp.Latent` class is a direct implementation of a Gaussian process without approximation. Given a mean and covariance function, we can place a prior on the function $f(x)$, |
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.
The `gp.Latent` class is a direct implementation of a Gaussian process without approximation. Given a mean and covariance function, we can place a prior on the function $f(x)$, | |
The {class}`pymc.gp.Latent` class is a direct implementation of a Gaussian process without approximation. Given a mean and covariance function, we can place a prior on the function $f(x)$, |
I would use this so it is rendered as a link. And not related here but I'd also update the docstring of the class so it links to this notebook. If you add :ref:`nb:gp_latent`
somewhere on the docstring, the link to this notebook will be added, expanding that target as the title of the page.
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.
That is very cool. Is this the page to read about how this works? https://docs.readthedocs.io/en/stable/guides/cross-referencing-with-sphinx.html#the-ref-role
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, this is a good reference
View / edit / reply to this conversation on ReviewNB OriolAbril commented on 2022-08-09T04:13:12Z Line #8. f_post = idata.posterior["f"].stack(samples=["chain", "draw"]).T If you use the current arviz development version you can do
f_post = az.extract(idata, var_names="f").transpose("sample", ...)
I assume plot_pg_dist wants the sample dimension to be the first one. bwengals commented on 2022-09-28T19:14:32Z Yup it does. |
View / edit / reply to this conversation on ReviewNB OriolAbril commented on 2022-08-09T04:13:13Z can you add a watermark title right above the watermark code cell? and the bwengals commented on 2022-09-28T19:13:09Z Ah yup, added |
Ah yup, added View entire conversation on ReviewNB |
Yup it does. View entire conversation on ReviewNB |
Update GP-Latent.ipynb to V4
This notebook was previously merged (see discussion in #371) but was overwritten. This PR re-adds it.