Can anyone get this to run in a notebook? I’ve tried just about everything but I continue to get the following error:
WARNING (theano.configdefaults): install mkl with conda install mkl-service
: No module named ‘mkl’
Traceback (most recent call last):
File “”, line 1, in
File “/Users/s/miniconda3/envs/pymc/lib/python3.8/multiprocessing/spawn.py”, line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File “/Users/s/miniconda3/envs/pymc/lib/python3.8/multiprocessing/spawn.py”, line 126, in main
self = reduction.pickle.load(from_parent)
File “/Users/s/miniconda3/envs/pymc/lib/python3.8/site-packages/theano/compile/ops.py”, line 517, in load_back
obj = getattr(module, name)
AttributeError: module ‘main’ has no attribute 'rate’
If I change pm.sample to cores=1, it works fine. Note that I have this same problem in a different notebook where I’ve written a custom deterministic function using the theano @as_op decorator. From the traceback it looks as if it’s having an issue finding the deterministic function.
Since this is an example file, I’m assuming I’m doing something wrong and it’s not a bug – but I’m happy to file a bug if others can repro.
I’m on mac os, using miniconda, clean env with the following (relevant) libraries installed:
python 3.8.2
theano 1.0.04
pymc3 3.8
numpy 1.18.1