-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Updated DEMetropolis warnings #3721
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
Conversation
michaelosthege
commented
Dec 10, 2019
- removed general warning (DEMetropolis: Remove warning #3718)
- added warning when too few chains are set (DEMetropolis: Warn on too small population #3719)
- test for the warning
+ accelerate existing test by running fewer iterations non-parallelized
Codecov Report
@@ Coverage Diff @@
## master #3721 +/- ##
==========================================
- Coverage 89.94% 89.93% -0.02%
==========================================
Files 134 134
Lines 20413 20422 +9
==========================================
+ Hits 18361 18366 +5
- Misses 2052 2056 +4
|
We also already have warning for number of chains here: https://github.com/pymc-devs/pymc3/blob/1c30a6f487afaeef73464a98320e35961b11873f/pymc3/step_methods/arraystep.py#L214-L216 |
Probably this warning should be removed in favour of the new one, because the later is more informative. Other than that this LGTM |
No that's not possible: With less than 2 other chains,
(from ter Braak (2006)) |
You are right! What about making the error message more explicit? |
+ keep old check for added safety
…ymc3 into demcmc-warnings
Actually, it was possible to raise even earlier in the call tree. Also tried to write more informative messages. Is it what you had in mind? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Updated DEMetropolis warnings (pymc-devs#3721)