CosmoStat/jax-lensing

Add functions to the library for performing the sampling

Opened this issue · 1 comments

EiffL commented

We currently rely on a lot of custom code that only appears in sample_maps.py for doing the sampling. This is not good. So for instance, if a user wants to sample a map in a notebook, they have to redefine everything.

We should add a set of functions to the library, so that you can for instance easily get the likelihood, and then just provide the likelihood and prior to a function that obtains samples for you.

EiffL commented

Also, this will allow to clean up sample_maps.py... which is... shall we say... a bit busy