-
Notifications
You must be signed in to change notification settings - Fork 41
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
Support multinomial sampling for NUTS, and more #79
Conversation
@yebai Please take a look over the changes. So far I didn't change the |
Just check the code is still type stable. |
Thanks, Kai. Below are some issues I found so far. The current PR contains 2 types for trajectory sampling method (slice/multinomial):
These 2 types have very similar functionality IMO. Maybe we can consider unify them to slightly reduce clutter and improve readability. Also, the following field names can be unified since they both indicate a trajectory sampling method (i.e., slice/multinomial)
|
The reason I have One solution is to change |
Yeah, that could work. |
Breaking changes
Almost 2x speed-up by using the cache. |
…functionality change.
I checked - it looks correct! |
We need to update the example in |
Sure. I will update it. |
Just merged it. Thanks for the help! @yebai I will finish the rest issues for v0.2 in another PR in the next few days. Those are mostly interface changes and RFC so I hope it won't take as long as this one. |
This PR resolves / will resolve:
More robust and modular way of detecting divergence More robust and modular way of detecting divergence #16Return more information for each step Return more information for each step #59Identify divergent transition Identify divergent transition #50find_good_eps
RFCfind_good_eps
#27