pymc icon indicating copy to clipboard operation
pymc copied to clipboard

Report divergences from JAX samplers

Open ricardoV94 opened this issue 2 years ago • 0 comments

Description

PyMC users are used to getting an immediate report when there are divergences in the standard NUTS sampler. I suggest we print (log) this information when we call the JAX samplers on behalf of the users.

This can be specially puzzling when there are nan in the gradient and the whole sampling finishes in an instant without a single warning, even though there were 100% divergences.

Recent user question: https://discourse.pymc.io/t/sampling-with-blackjax-no-divergence-report/13394

ricardoV94 avatar Nov 30 '23 14:11 ricardoV94