Closed ghost closed 1 year ago
Thanks for the report!
This is definitely unexpected. Is there any chance that you can run this in the session with a debugger? I'd need to know the variables around here https://github.com/joshspeagle/dynesty/blob/0ee1324f8b85f3e8e7a4da65c87c1ea8ec712288/py/dynesty/bounding.py#L472
The reason for the error is that the point sampled from the ellipsoid fails the test X^T A^ X <1 where A is a matrix definining the ellipsoid. The most likely guess why that happens is that this is a purely numerical artefact and we need to replace the test by q<1+eps.
so if you could print one thing from the debugger after the error, it would be this np.einsum('ai,aij,aj->a', delts, self.ams, delts).min()
The expectation is that it will be something 1+ very small number
I think I have a patch which may improve things (assuming my hypothesis about the cause was correct) if you could try this branch https://github.com/joshspeagle/dynesty/tree/v1.2.3patch
Hi segasai, yes that patch appears to have removed the bug from appearing! Thanks for the quick fix.
great! The next release will likely be a 2.0.0, it will contain that fix aside from many other improvements.
Dynesty version Dynesty 1.2.3, installed with pip
Your question I get the following error after running the sampler for 20h with mostly an effective sampling rate of about 9%, any insight as to why the sampling runs into this?