Hi @EiffL here is a notebook to test apt on a toy gaussian model:

where the goal is to learn the posterior distribution (in red) from the proposal (in green).
To validate the loss I plan to follow these steps:
With not smooth NF:
1. Learn the posterior from the prior
a. with nll loss
b. with apt loss
-> should get the same contours.
If validated:
2. Learn the posterior from the proposal
a. with nll loss (weird behavior is expected)
b. with apt loss (should get the correct contours)
-> if it works then apt loss is validated and we can test it on our smooth nf
Do the same with Smooth NF
In the notebook you can choose which experiment you want to perform through:
smooth = False
proposal = False
loss_apt = False
Hi @EiffL here is a notebook to test apt on a toy gaussian model:
where the goal is to learn the posterior distribution (in red) from the proposal (in green).
To validate the loss I plan to follow these steps:
In the notebook you can choose which experiment you want to perform through: