AttributeError: module 'pymc3.variational' has no attribute 'sample_vp'

I’m trying to get a traces for my parameters from a variational inference result.

Following http://pymc3-testing.readthedocs.io/en/rtd-docs/notebooks/bayesian_neural_network_advi.html, I tried:

with model:
    ...
    mean_field = pm.fit(method='advi')
    trace = pm.variational.sample_vp(mean_field, draws=5000)

But sample_vp doesn’t exist?

You are following the old doc. For the update to date version please visit: http://docs.pymc.io/notebooks/bayesian_neural_network_advi.html