-
-
Notifications
You must be signed in to change notification settings - Fork 745
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
fixed posterior covariance calculation of Code 13.15, closes #53 #54
fixed posterior covariance calculation of Code 13.15, closes #53 #54
Conversation
Check out this pull request on ReviewNB: https://app.reviewnb.com/pymc-devs/resources/pull/54 You'll be able to see visual diffs and write comments on notebook cells. Powered by ReviewNB. |
Thank you, that's well spotted! |
@AlexAndorra I agree that |
Yeah I get your point. However, if we're not going with |
OK that makes sense. I've changed the calculation to make use of As a first time reader I think it would benefit me to have seen one or two examples of using the |
Thank you, LGTM now! I don't know exactly but I think And about the |
I'm under the same impression about using The warnings are a mystery for me at the moment but I think are the same as in this Theano issue discussed here Theano/Theano#6695 |
I just wanted to chime in about the future warnings. I managed to track them down in this issue, but I didn't see an immediate fix at the time. |
Oh ok, thanks Luciano, that's good to know! So looks like the only solution for the moment is indeed to hide them in the notebooks. |
FYI @chdamianos |
thanks @AlexAndorra for the heads up! Yes it looks like |
Does anyone with write access see why there is a conflict with this PR? |
@AlexAndorra thanks for the heads up. It looks like the notebook has been updated since my pull request. I will pull latest master and update |
…and_packed_triangular instead of np.tril_indices
f8d9091
to
b8512ba
Compare
@AlexAndorra I rebased to latest master. It should be ok now. |
Could you also please rerun the notebook from the latest PyMC3 release? |
@junpenglao good catch, it's now run with the latest release |
Thanks! |
Closes issue pymc-devs/pymc#53 by modifying the calculation of
L_chol
in sectionCode 13.15
fromL_chol[np.triu_indices(2, 0)] = Chol_cov
toL_chol[np.tril_indices(2, 0)] = Chol_cov
. This modification correctsL_chol
to a lower triangular matrix of the Cholesky decomposition and not an upper triangular matrix.