Bayesian NN Example Error

Hi everyone,
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:
pymc3==3.6
theano==1.0.4
python==3.6.8
conda==4.7.10

Is there something wrong with my installation or has this class been moved to a different location?

Cheers,
Matt

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.