-
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
Type design for PhasePoint
and DualValue
.
#51
Conversation
Fixed a minor bug in find_good_eps: see L250.
# Conflicts: # REQUIRE
I updated the version in Update: and an interface bug (f8226a7) |
Do you plan to address the problem of returning |
yes, this will be addressed in this PR since |
So for the purpose of #59, maybe we should consider here somehow make it flexible to return more information within a single step? |
# Conflicts: # src/trajectory.jl
PhasePoint
and LogDensity
.PhasePoint
and LogDensity
.
Hi Hong, when can I do a review? |
It's ready for a look! |
PhasePoint
and LogDensity
.PhasePoint
and DualValue
.
I commented on some places for discussion. Please take a look! |
4d9389c
to
be734f0
Compare
Ready for another look! @xukai92 |
Looks great to me! Just wonder what's "bugfix" in the commit message of 435ac08 mean? I didn't see bugfix? |
It refers to the leftover |
Ready to merge from my side @xukai92 |
PhasePoint
and DualValue
.PhasePoint
and DualValue
.
Merged! Thanks for your great work! |
This PR aims at introducing some additional types that are discussed in #16. More specifically, the following types are introduced:
PhasePoint
: storesθ
,r
and cached Potential energy (and its gradient). Consider introduce thePhasePoint
type #17DualValue
: stores log densitylogπ(θ)
, and cache its gradient.LogDensityFunction: storeslogπ
and its gradient function∂logπ∂θ
.TODOs
leapfrog
usingPhasePoint
DualFunction
?build_tree
usingPhasePoint
Return more information for each step Return more information for each step #59Add aTermination
type.