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

fix: typo in `vp.mode()`. #117

Closed Bobby-Huggins closed 1 year ago

Bobby-Huggins commented 1 year ago

Not sure if anyone else had this issue, but for me this fixes test_mode_no_orig(), which was failing because it unexpectedly provided a gradient to scipy.minimize. Now vp.mode() tells minimize that the objective is also returning the gradient as a second argument, when orig_flag=False.