-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Sample remaining variables with the NUTS sampler #68
Conversation
f0d1890
to
8ec4d98
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
8ec4d98
to
87d1aa8
Compare
Codecov ReportBase: 97.38% // Head: 97.41% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #68 +/- ##
==========================================
+ Coverage 97.38% 97.41% +0.02%
==========================================
Files 9 9
Lines 613 619 +6
Branches 60 58 -2
==========================================
+ Hits 597 603 +6
Misses 5 5
Partials 11 11
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
2cbf04f
to
6d9f8c2
Compare
Progress reportThe NUTS sampler is integrated in It is currently tested on an example with NUTS-only. Doing so I discovered a bug when the variable is a scalar: import aesara.tensor as at
srng = at.random.RandomStream(0)
tau_rv = srng.halfcauchy(0, 1, name="tau")
Y_rv = srng.halfcauchy(0, tau_rv, name="Y") Which raises:
This is reminiscent of shape issues I encountered in Most importantly, I need an example where there's both a Gibbs sampling step / closed form posterior and a NUTS sampling step. To summarize, in order of priority:
|
51c3d1b
to
ebfcdcf
Compare
ebfcdcf
to
0a586ec
Compare
This is ready for review:
|
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.
Looks good; just some minor comments.
3a9c92e
to
3a783e4
Compare
In this PR we assign the NUTS sampler to the variables that have not been assigned a sampler in
construct_sampler
.More details to come
Closes #47