pymc-devs / pymc2

THIS IS THE **OLD** PYMC PROJECT (VERSION 2). PLEASE USE PYMC INSTEAD:
http://pymc-devs.github.com/pymc/
Other
879 stars 229 forks source link

Sample function (MCMC) running AGONIZINGLY slowly #200

Open sarahvassall opened 3 years ago

sarahvassall commented 3 years ago

Hi, I built a hierarchical modal and am trying to run MCMC. I recently had a forced Windows update that is causing it to run at a snail's pace, with each sample taking ~2-3 seconds! I did not have this issue a few days ago, and I'm now running into this slowness in Jupyter Notebook and Lab, as well as Spyder. Currently using pymc36.

The model is m_vz_uni. Here is the code from the cell:

m_vz_uni.sample(8000,burn=2000,dbname='traces_vz_uni.db',db='pickle') stats_vz = m_vz_uni.gen_stats()

I've tried resetting kernels, reinstalling, restarting, etc. Nothing seems to fix it.

Thanks

fonnesbeck commented 3 years ago

This might be better addressed on our Discourse page (https://discourse.pymc.io/) as it does not appear to be a specific bug report, but a few things to start with:

fonnesbeck commented 3 years ago

BTW, just noticed that you posted this in the old PyMC repo issue tracker and not the one for PyMC3. If you really are using PyMC version 2, then you definitely should update to PyMC3. I can help you port your model if you need assistance.