Closed davidkleiven closed 6 years ago
Your interpretation is correct, and this shouldn't be happening. Are you using Python 2? It is not supported and I have seen strange behaviour from it before.
I just reproduced it on Python 3. Will investigate
I think this is beyond my pay grade. Hopefully @dfm can take a look.
I am not sure if this helps, but when I was running with python3 and executed the dnest4.postprocess() while the code was running the code the plots looked fine until around 180 particles were saved. I included the plot I got before the strange thing happen
@eggplantbren: this looks like a problem with the levels.txt file (accept > tries), not the Python processing...
When you're using a Python-based model, levels.txt appears to be created by some stuff in sampler.py and/or backends.py. It's not SamplerImpl.h - I put some diagnostic stuff in there to see what was going on, but it never got executed.
Fixed with 7371e0f294051c45e0d18f1ca3dbd8584299a7e2. @dfm can reopen it if there's some reason my fix (using a longer unsigned integer type) is likely to cause any problems. I don't see why it would, and it seems to be working fine.
Yes, it works fine! Thanks!
👍
Hi, when I try to run the straight line example (python version) I get the following plot From the code the the lowest plot should be
so intuitively I would expect this to be a number between zero and one. My levels.txt files:
so one can clearly see that there are levels with more accepts than tries. Is this as it should be? In that case what is the interpretation of MH acceptance?