Hello,
I am very new to PYMC3. I used the Disaster model Theano op code from the case study in PYMC3 examples. https://github.com/pymc-devs/pymc-examples/blob/main/examples/case_studies/disaster_model_theano_op.py
I have been experiencing the following error:
Traceback (most recent call last):
File “/Users/Nazareen/opt/anaconda3/lib/python3.8/site-packages/pymc3/parallel_sampling.py”, line 136, in run
self._unpickle_step_method()File “/Users/Nazareen/opt/anaconda3/lib/python3.8/site-packages/pymc3/parallel_sampling.py”, line 119, in _unpickle_step_method
raise ValueError(unpickle_error)ValueError: The model could not be unpickled. This is required for sampling with more than one core and multiprocessing context spawn or forkserver.
The above exception was the direct cause of the following exception:Traceback (most recent call last):
File “”, line 25, in
tr = pm.sample(1000, tune=500, start=start, step=[step1, step2], cores=2)File “/Users/Nazareen/opt/anaconda3/lib/python3.8/site-packages/pymc3/sampling.py”, line 557, in sample
trace = _mp_sample(**sample_args, **parallel_args)File “/Users/Nazareen/opt/anaconda3/lib/python3.8/site-packages/pymc3/sampling.py”, line 1476, in _mp_sample
for draw in sampler:File “/Users/Nazareen/opt/anaconda3/lib/python3.8/site-packages/pymc3/parallel_sampling.py”, line 480, in iter
draw = ProcessAdapter.recv_draw(self._active)File “/Users/Nazareen/opt/anaconda3/lib/python3.8/site-packages/pymc3/parallel_sampling.py”, line 360, in recv_draw
raise error from old_errorRuntimeError: Chain 0 failed.
Could someone help me rectify the error.