Closed iancze closed 1 year ago
Some updates on this issue.
torch.nn.Module
with PyroModule
and introduce stochastic parameters.Some updates on this issue:
Beyond the already-merged #121, most of the additional code for this is outside of any changes to the MPoL codebase itself. So I think this makes sense just to demonstrate these capabilities as a long-form tutorial.
To do that, I need to
Overview of tutorial contents
PyroSample
deterministic
statementsWe made a movie showing iterative posterior predictions of the images but we found the actual changes were very small, and thus it didn't make for a great visualization.
Is your feature request related to a problem or opportunity? Please describe. The MPoL framework allows the rapid calculation of gradients w.r.t. model parameters. If the sky-plane model is specified parametrically (i.e., as a sky-plane Gaussian, or Gaussian ring, etc...) and is reasonably low-dimensional (< 100) then the posterior distribution of those parameters can be explored using techniques like Variational Inference or Hamiltonian Monte Carlo, conveniently provided by the Pyro package.
This would make MPoL useable for more than just non-parametric imaging.
Describe the solution you'd like In theory, using Pyro with MPoL should already be possible (no modifications to MPoL needed).
We would like to test whether this is possible by making a tutorial showing how to
We should start with a simple Gaussian blob model.
But for an application to real data, a useful (and popular) dataset would be the DSHARP AS 209 continuum. We could make a direct comparison to the posteriors calculated by Guzmán+18 using their ringed Gaussian model with 27 parameters, sampled by emcee.