ndeutschmann / zunis

Normalizing flows for neural importance sampling
https://zunis.readthedocs.io
MIT License
32 stars 6 forks source link

Added adaptive variance integrator #25

Closed ndeutschmann closed 3 years ago

ndeutschmann commented 3 years ago

This implements a new adaptive integrator that switches to forward sampling after the model loss is better than the loss obtain on the same sample but using the identity as a flow.

Caveat I use the standard deviation of the identity model loss to estimate whether the model is significantly better. Accessing the standard deviation of the model loss is quite painful and would require changing a lot of the internals - better leave that alone for now.