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
TST: TestMICE.test_combine, test_corrpsd_threshold[0], test_mixedlm failing on Debian unstable #7911
Comments
the solution for corrpsd is most likely #3716 or something like that. I don't know the code well enough for the other two to have a guess how fragile they are or why. |
FWIW, I have the three same failures on an up-to-date ArchLinux for 0.13.2:
The
But I have no idea if that’s related. No warnings for the two others (but 285 warnings in total). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
In Debian unstable, TestMICE.test_combine, test_corrpsd_threshold[0] and test_mixedlm are failing. (This log is from statsmodels 0.12.2, but 0.13.1 has the same errors; I haven't tried current main.)
As the output of test_corrpsd_threshold is so close to 0, and the results of TestMice.test_combine and test_mixedlm depend substantially on the np.random state, I suspect that this is a rounding issue not a real incorrect-results bug, but I don't have proof of that.
=================================== FAILURES ===================================
____________________________ TestMICE.test_combine _____________________________
self = <statsmodels.imputation.tests.test_mice.TestMICE object at 0x7f946cec9070>
E AssertionError:
E Not equal to tolerance rtol=1e-07, atol=1e-05
E
E Mismatched elements: 3 / 3 (100%)
E Max absolute difference: 0.17686937
E Max relative difference: 1.59957657
E x: array([0.230217, 0.287442, 0.322124])
E y: array([0.177814, 0.110573, 0.296265])
/usr/lib/python3/dist-packages/statsmodels/imputation/tests/test_mice.py:366: AssertionError
__________________________ test_corrpsd_threshold[0] ___________________________
threshold = 0
E AssertionError:
E Not equal to tolerance rtol=1e-06, atol=1e-15
E
E Mismatched elements: 1 / 1 (100%)
E Max absolute difference: 1.05471187e-15
E Max relative difference: inf
E x: array(1.054712e-15)
E y: array(0)
/usr/lib/python3/dist-packages/statsmodels/stats/tests/test_corrpsd.py:196: AssertionError
_________________________________ test_mixedlm _________________________________
E AssertionError:
E Not equal to tolerance rtol=0.01, atol=0.01
E
E Mismatched elements: 1 / 1 (100%)
E Max absolute difference: 0.01958632
E Max relative difference: 0.03766599
E x: array(0.539586)
E y: array(0.52)
/usr/lib/python3/dist-packages/statsmodels/stats/tests/test_mediation.py:214: AssertionError
Code Sample, a copy-pastable example if possible
The statsmodels test suite.
Expected Output
The tests should pass.
Output of
import statsmodels.api as sm; sm.show_versions()
The problem started when Debian upgraded from libblas3/liblapack3 3.9 to 3.10.
Python 3.9, numpy 1.19, scipy 1.7, matplotlib 3.3, pandas 1.1.
The text was updated successfully, but these errors were encountered: