acerbilab / pyvbmc

PyVBMC: Variational Bayesian Monte Carlo algorithm for posterior and model inference in Python
https://acerbilab.github.io/pyvbmc/
BSD 3-Clause "New" or "Revised" License
114 stars 6 forks source link

Occasionally the finalization step produces a worse ELBO than the previous steps #68

Closed pipme closed 1 year ago

pipme commented 2 years ago

In finilization step the elbo mean drops from 0.04 to -0.01.

image

To reproduce, add np.random.seed(43) in the beginning of tests/vbmc/test_vbmc_optimize.pyand run test_vbmc_multivariate_normal.

lacerbi commented 2 years ago

Thoughts:

Having said this, checking whether the issue is with the choice of iteration (as opposed to somewhere else, like during optimization) should be quite easy.