I was trying to adapt the Bayesian NN example (https://docs.pymc.io/notebooks/bayesian_neural_network_advi.html) to one of my own data sets. However, the pm.Data() shared variable container seems to be not available on my installation.
AttributeError: module ‘pymc3’ has no attribute ‘Data’
I am in a conda environment with the following versions:
Is there something wrong with my installation or has this class been moved to a different location?
You need to update pymc3.
pm.Data in new in version 3.7:
If you installed it using pip:
pip install -U pymc3
if using conda:
conda update -c conda-forge pymc3
Ok, thank you.
That’s weird, because the example is almost 3 years old…
I will give this a try.