Closed ivandebono closed 4 years ago
Hi @ivandebono. This is a planck likelihood/montepython issue. However it will in general only crop up when using nested sampling due to the fact that it explores the deep tails of a distribution. I believe that @lukashergt has encountered this, and that when using CAMB/CosmoMC that this is a silent error, so it might be worth contacting the montepython crew to see how they advise excluding these points from the sampling distribution.
Sorry I can't be of more help. I'd advise raising an issue on the montepython repository, and looping me into that conversation.
Thank you.
You're right: the error occurs on CAMB/CosmoMC, but CosmoMC just keeps on running.
A very similar issue was also addressed in cobaya by @JesusTorrado, who may be able to provide further advice.
Thank you.
I used a try/except block for the CMB likelihood in likelihood_class.py, assigning a value of 0 to lkl when the exception occurs. It's a crude solution but it's the only one that occurred to me.
The value you assign in these cases should be 'log zero' (typically -numpy.inf
, -1e30
, or -1e300
). You will likely see some very odd behaviour if you assign the log likelihood a value of 0.
Hi @williamjameshandley and @ivandebono
You should open an issue in MontePython to catch that error.
Also, as @williamjameshandley says, go for some approx of log(0)
Hi Will,
I'm not entirely sure that this is a Polychord issue, so bear with me.
I'm running Montepython with Polychord (--method PC) with Planck 2018 data and likelihoods (plc-3.01). My input parameter file works just fine with Montepython Metropolis-Hastings sampling. But running with Polychord produces an error which then causes Montepython to abort the run before all the live points have been produced.
Here is the error message:
In an attempt to resolve the issue, I tried using an extremely low number of live points. Depending on the data set (TTTEEE or EE), I tried nlive = 20 or 50. This allowed all the live points to be output, and for the sampling to start.
I'm not quite sure what is going on here. The error message seems to point to some unphysical region of the prior space, but why is that a problem? Shouldn't Polychord (or Montepython) just discard that point and try another one?
Why should the number of live points change anything?
If anyone else has experienced this issue, I'd be grateful for any hints.