Skip to content
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

remove the 0.5 scaling term #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

xuhuifan
Copy link

Remove the 0.5 scaling term in the full leapfrog step.
The original paper of "Neal's MCMC using Hamiltoniann" (http://www.mcmchandbook.net/HandbookChapter5.pdf, page 125) does not contain this term.

Also, both of the following link do not contain the 0.5 scaling term
line 357 of https://github.com/koepsell/pyhmc/blob/master/hmc2.py
line 199 of https://github.com/koepsell/pyhmc/blob/master/hmc2.m

Remove the unnecessary 0.5 scale in the full leapfrog step.
The original paper of "Neal's MCMC using Hamiltoniann" (http://www.mcmchandbook.net/HandbookChapter5.pdf, page 125) does not contain this term. 

Also, both of the following link do not contain the 0.5 scale term
line 357 of https://github.com/koepsell/pyhmc/blob/master/hmc2.py
line 199 of https://github.com/koepsell/pyhmc/blob/master/hmc2.m
@fanzhuyifan
Copy link

I think the code here is trying to do half-step updates in momentum, and it needs a half step momentum update after the full step update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants