pymc-devs / pymc

Bayesian Modeling and Probabilistic Programming in Python
https://docs.pymc.io/
Other
8.47k stars 1.97k forks source link

ENH: implement deterministic ADVI (DADVI) #7374

Open fonnesbeck opened 1 week ago

fonnesbeck commented 1 week ago

Before

with pm.Model():
    ...
    approx = pm.fit(method='advi')

After

with pm.Model():
    ...
    approx = pm.fit(method='dadvi')

Context for the issue:

The deterministic ADVI appears to be a clear improvement on the original ADVI algorithm, both in terms of speed and accuracy. Having a look at the paper there should not be any obvious impediment to adding it to PyMC (though we may want it tied more closely to JAX than the current ADVI is).