astrodeepnet / sbi_experiments

Simulation Based Inference experiments
MIT License
3 stars 3 forks source link

Adds an implementation of mixture of ramps to create expressive bijectors #14

Closed EiffL closed 2 years ago

EiffL commented 2 years ago

This PR should add a variation on the ramp bijector which can include several ramps at once, in order to create complex bijections similar to what is achieved in Spline Flow.

In early testing, I can achieve a very nice fit to the two moons with just 2 coupling layers, of 8 components each (and that may already be more than necessary).

However, in implementing this, several things happened:

I'll leave it as a draft PR for now, because the bijector seems to be working but not its gradients, which is annoying