Repository navigation
Conversation
|
I get a large number of warning about convergence failures when I run the svar unit tests locally. |
|
SVAR does not keep any convergence information, i.e. no mle_retvals and also no mle_settings. The actual optimization with |
Codecov Report
@@ Coverage Diff @@
## master #5285 +/- ##
==========================================
+ Coverage 81.71% 81.77% +0.06%
==========================================
Files 569 569
Lines 89710 89704 -6
Branches 10028 10026 -2
==========================================
+ Hits 73306 73356 +50
+ Misses 14132 14078 -54
+ Partials 2272 2270 -2
Continue to review full report at Codecov.
|
|
I changed the sirf_errband_mc optimization to start initially with the sample estimates of A and B |
|
another bug/limitation, I guess: |
|
first run on travis shows that this fails on python 2.7, which I expected. However, if we just store the original A and B, then we don't need to rebuild them and choose a dtype. |
|
fails on python 2.7 with, I guess float round instead of int |
61e971d to
b0d0a3f
Compare
|
numerical reproducibility fails in 32bit windows |
b95f843 to
530bd79
Compare
|
The last amend and force push cleaned up the last commit (which I kept dirty during debugging) This is finished as BUG fix and minor refactoring. There is still work to do to clean up SVAR, but not in this PR. @mk1564 Can you try this out with your python environment and data? |
|
one appveyor failed but in unrelated code, it looks like TestGEE.test_formulas is missing a random.seed otherwise all green and ready to merge |
|
I am using Numpy 1.14.3 and python 3.6.5. I just run the code
which works fine and I could plot irf as well. But error band still causes an error.
gives
|
|
@mk1564 thanks for checking and reporting this I guess the simplest solution would be to keep A_original and B_original as None if not specified. Can your try your cases after moving the self.A_original self.B_original up in the method so it is after The example passes then for me, and A_original and B_original is whatever the user specified there are currently no test cases for A is None or B is None, so it's not as easy to just add an new unit test method |
|
Okay now it works! Thank you so much for your help 👍 |
|
@mk1564 Thanks for the bug report. I will push the latest version of the fix and some basic unit tests tonight or tomorrow, then merge. |
|
@josef-pkt Sure will do! Thanks again. |
530bd79 to
fa9104f
Compare
|
I also forgot to set the seed for the MC for errband. one appveyor fails |
|
Hi Josef, |
|
No, not yet. |
|
Got it! thanks for letting me know. |
|
temporarily prio-high so I don't forget about it. rebase, check, merge for 0.10 |
|
closed by #5641 |
closes #5280 SVAR sirf_errband_mc raises exception, especially on py 3
this avoids recreating the original A and B, and choosing string/bytes versus unicode, py2 and py3 compatible
adds unit test that is mostly smoke test (but found a missing seed bug)
errband/confint values in plot look reasonable