-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Implemented rng_fn
to CAR/ICAR
#7723
base: main
Are you sure you want to change the base?
Implemented rng_fn
to CAR/ICAR
#7723
Conversation
|
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.
Instead of doing all the decomposition here, just pass the precision matrix and set method = "eig"
to multivariate_normal
.
You will also need to add a test.
Unless there's some subtle complexity I would suggest to implement as a SymbolicRV like in: #7685 |
Hi @jessegrabowski ! Yeah sure I'll do that . Is there any specified file for the test or I've to create a new file ? Thank You ! |
Go into It looks like you also have to run pre-commit |
Thanks @jessegrabowski for timely response! I've updated the rng_fn and added the test as per your request. Let me know if anything needs to change ? Once again Thank You ! |
Did you check the PR that Ricardo linked? This would be the preferred way to go. |
You're referring that to write the |
You would convert the entire distribution into a Then do the same logic you already did in the return cls(
inputs=[rng, size, mu, W, alpha, tau],
outputs=[next_rng, draws],
method=method,
)(rng, size, nu, mean, scale) The |
Hey @jessegrabowski ! I've implemented that part but struggling with test part . Can you help me out with and tell me that what I'm missing ? Here's the link of the code file & error Thank You ! |
You can push the code you have so far and we can look at it here |
Hi @jessegrabowski , @ricardoV94 !
I've implemented the
rng_fn
for the designated classesCAR/ICAR
in the issue #7713 , so could you please review and let me know if there is anything needs to be changed .Thank You !
📚 Documentation preview 📚: https://pymc--7723.org.readthedocs.build/en/7723/