The ideas every later method reuses. Before fitting any flow, these notebooks build the small set of tools a Gaussianization method is made of, first by hand in JAX and then confirmed against rbig and gauss_flows: the change-of-variables formula and its log-determinant, how log-determinants compose, the trade-off between the forward and inverse directions, why is the target, what a density destructor is, the numerics that keep one stable, and how to check that the result is Gaussian.
Each notebook follows the same pattern: derive the idea by hand, then show the same quantity coming out of the library, so the packages stop being black boxes.
| # | Notebook | What you take away |
|---|---|---|
| 00 | Change of variables | the change-of-variables formula (3), and why a bijector’s log_det is its Jacobian term |
| 01 | Composition | log-determinants of stacked layers add, (4), and rotations cost nothing |
| 02 | Forward vs inverse | the density direction is closed form and the sampling direction (1) needs a root find (4), so a Gaussianization flow samples far slower than it scores |
| 03 | Why a standard Gaussian | the Gaussian has maximum entropy, (1), the standard one factorises so its total correlation is zero, (4), and its score is |
| 04 | Density destructors | a flow is an invertible map that sends the data to a standard Gaussian, (1), built by alternating a marginal Gaussianization with a rotation |
| 05 | Numerical mechanics | where round trips lose accuracy, the clamp (1) and the log-space probit (3), float32 drift in deep log-determinant sums, and the round-trip test (4) |
| 06 | Gaussianity diagnostics | marginal checks miss dependence, (3); an energy test against the standard normal, (4), certifies the joint |