Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"The sum of logpriors in the sample is not consistent." when resuming chains #346

Closed
gerrfarr opened this issue Feb 7, 2024 · 3 comments

Comments

@gerrfarr
Copy link
Contributor

gerrfarr commented Feb 7, 2024

I am getting recurring errors stating that "The sum of logpriors in the sample is not consistent." I tracked the issue to the check here

def _check_logps(self, temperature_only=False):

I can see that the relative tolerance was already increased slightly recently. Would it be a bad idea to also increase the absolute tolerance a bit? It appears that the issue arises when the logprior is close to zero.

@cmbant
Copy link
Collaborator

cmbant commented Feb 7, 2024

Seems like #306 is not fixed. If you have a simple reproducing example that may help Jesus to figure it out (introduced in #276)

@gerrfarr
Copy link
Contributor Author

gerrfarr commented Feb 7, 2024

I don't have one on hand, but I could possibly construct something. I figured out that I can alleviate the problem in my case by simply adjusting the absolute tolerance up to 1e-7 (from the default of 1e-8). I suspect it's one of my custom priors which may have fluctuations which are bit larger than usual

@JesusTorrado
Copy link
Contributor

Hi @gerrfarr

You can try #349 if you have time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants