dgahle/baysar

Hamlitonian Sampling for Balmer Lines

Opened this issue · 1 comments

Update BaySAR to be compatible with inference.mcmc.HamiltonianChain to resolve the effective sample size in demo/balmer_series.py` flatlining at about 7.

Useful links:

Task list

  • Write out the mathematics
  • Plan out the objects that require a gradient class method
  • Update this list with the above and cross out as going along
  • Add unit tests to verify functionality
  • Update demo/balmer_series.py with the HamiltonianChain

It's likely that each function that needs to be differentiated will need to be a class that can store all the dependent/nested function gradient methods can be accessed for.

Or cache the gradients of some of the lowest level functions like emission, temperature, and density profiles.