Skip to content

Commit

Permalink
Less sensitive neff warning
Browse files Browse the repository at this point in the history
  • Loading branch information
aseyboldt committed Jan 18, 2018
1 parent 5861092 commit 4f8e59c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pymc3/backends/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,17 @@ def _run_convergence_checks(self, trace):
warn = SamplerWarning(
WarningType.CONVERGENCE, msg, 'error', None, None, effective_n)
warnings.append(warn)
elif eff_min / n_samples < 0.1:
msg = ("The number of effective samples is smaller than "
"10% for some parameters.")
warn = SamplerWarning(
WarningType.CONVERGENCE, msg, 'warn', None, None, effective_n)
warnings.append(warn)
elif eff_min / n_samples < 0.25:
msg = ("The number of effective samples is smaller than "
"25% for some parameters.")
warn = SamplerWarning(
WarningType.CONVERGENCE, msg, 'warn', None, None, effective_n)
WarningType.CONVERGENCE, msg, 'info', None, None, effective_n)
warnings.append(warn)

self._add_warnings(warnings)
Expand Down

0 comments on commit 4f8e59c

Please sign in to comment.