- Notifications
You must be signed in to change notification settings - Fork 758
Chapter 14 of Rethinking 2 #94
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 Review Jupyter notebook visual diffs & provide feedback on notebooks. Powered by ReviewNB |
| Did a quick skim and things generally look good. Will do a deeper review this week, hopefully in next couple of days |
| View / edit / reply to this conversation on ReviewNB aloctavodia commented on 2020-06-29T16:01:19Z Typo "extracts the stds and matrix" |
| View / edit / reply to this conversation on ReviewNB aloctavodia commented on 2020-06-29T16:01:20Z Reading this I remember I have an unanswered question (https://github.com/aloctavodia/BAP/issues/68) :man-facepalming:
Shouldn't this be
np.exp(- 0.5 * post["rhosq"][::50].values[:, None] * x_seq ** 2)
and in the model definition
cov = etasq * pm.gp.cov.ExpQuad(input_dim=1, ls_inv=rhosq)
In the book rhosq=1.31, 1.31*0.5=0.65 (the value in this notebook), so maybe the only missing part is multiplying by 0.5
AlexAndorra commented on 2020-06-29T18:32:50Z Indeed, this makes sense, thanks for catching this! Also, good to know we can parametrize the ExpQuad kernel with ls_inv! |
| View / edit / reply to this conversation on ReviewNB aloctavodia commented on 2020-06-29T16:01:21Z typo "..And we can easily use this function in our model below" or "..And we can easily call this function in our model below" |
| View / edit / reply to this conversation on ReviewNB aloctavodia commented on 2020-06-29T16:01:22Z Typo "...which is why I changed it" or "that's why I changed it" |
| Indeed, this makes sense, thanks for catching this! Also, good to know we can parametrize the ExpQuad kernel with ls_inv! View entire conversation on ReviewNB |
| Thanks for the review @aloctavodia ! I corrected the typos and implemented the changes on the GP for Oceanic tools model. It turns out that:
I think that there are subtle differences in the GP implementations between PyMC and ULAM that make a bijective match hard to get, but I think this looks quite good now! |
| @aloctavodia, as discussed I just pushed the change where |
| There is a change to chapter 11's notebook that should not be part of this PR, right? |
| Yeah it should -- it's just a super tiny typo fix, so I figured it wasn't worth a dedicated PR. Thanks for approving --> merging! 🍾 |
Ready for review 🍾
There is a lot of new material in this chapter. Most of these novelties are in sections 3 (instrumental variables), 4 (social relations models) and 5 (GPs), so I'd recommend focusing most of the reviewing efforts there.
Thanks in advance for the reviews 🖖