Hello I am using Pymc3 for probabilistic modeling My notebook kernel dies after 100 percent completion of training and ask to restart
here is the code.
import warnings
warnings.filterwarnings(‘ignore’)
with model:
lambda_= pm.math.switch(tau>idx,lambda_1,lambda_2)
observation=pm.Poisson(‘obs’,lambda_,observed=count_dataframe)
step=pm.Metropolis()
trace=pm.sample(10000,tune=5000,step=step,return_inferencedata=False,cores=1)
This problem occurred also when I used default cores which are 4 and dealing 4 chains. I tried to figure it out by setting cores =1 then I also updated bellow package to avoid this error but didn’t work it out
~ conda update intel-openmp
I am new in Pymc3 kindly help me to solve this problem. I am using Mac OS Bigsur. theano-pymc 1.1.2
python version is 3.7.4. My data size is 1 miilion .