-
Notifications
You must be signed in to change notification settings - Fork 2
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
Batch capable sampling functions + proto-type HMC/MCMC #25
base: master
Are you sure you want to change the base?
Conversation
OOOOooooohh Sweeet! |
If someone has a chance, I could use a second set of eyes on the loss function to figure out why it seems to require me to multiply it by a tiny number to get the chain to move :-/ I assume there is a bug somewhere... |
It appears some of the issues go away when I reduce the MCMC step-size or the HMC initial step-size... |
Merge branch 'batch_hmc' of https://github.com/DifferentiableUniverseInitiative/DHOD into batch_hmc
I'm gonna flag this as out of date most likely, and will close this PR |
bits of codes were already merged from the ben_2021 branch |
Ah, I think we just need the notebook with the standard MCMC |
I spent a few hours going through the various sampling related functions to make them take arrays of values. In order to get the overall likelihood working I also had to change around the power-spectra code. Right now I use map_fn to "broadcast" (appy?) two the functions over the batch (the bin-count and fft functions). Not sure if this is needed though.
I also include some MCMC and HMC examples; currently things don't look too great and it is still not particularly fast. A few things that limit speed are...
Also, my normalization of my likelihood is 100% incorrect; when I was trying what I thought was the correct thing my chains never moved :(