We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0974ecc commit aeb5563Copy full SHA for aeb5563
pymc3/step_methods/hmc/nuts.py
@@ -420,7 +420,7 @@ def _check_len(self, tuning):
420
warnings.warn('Step size tuning was enabled throughout the whole '
421
'trace. You might want to specify the number of '
422
'tuning steps.')
423
- if n == len(self._divs_after_tune):
+ if n > 0 and n == len(self._divs_after_tune):
424
warnings.warn('Chain %s contains only diverging samples. '
425
'The model is probably misspecified.'
426
% self._chain_id)
0 commit comments