-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
⚠️ CI failed on Linux_Nightly.pylatest_pip_scipy_dev (last failure: Dec 22, 2024) ⚠️ #30509
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
Comments
I can reproduce the issue with numpy-dev (no issue with numpy 2.2 latest release)
A git bisect seems to indicate that numpy/numpy#27883 is the culprit ... I commented in numpy/numpy#27883 (comment). We are comparing scikit-learn/sklearn/metrics/tests/test_pairwise.py Lines 967 to 989 in 4ad187a
This only fails with
|
Moving here...
So, I am a bit surprised by two things:
|
Thanks for your feed-back! In case there is no further insights from @jjerphan or @jeremiedbb, I'll try to debug numpy vs numpy-dev to track down were the difference comes from so that it would be less about guessing. |
I do not have time to look at it, unfortunately. |
May try to step through the code here to see the likely change. I am still very confident this is just a tiny precision change (very likely to the better even) due to different chunk sizes getting summed up. |
OK, it is indeed the einsum, and unlike normal summation which has a better precision, this indeed has a worse one. The reason, is that the einsum code works the following way:
Now, before the change, that for loop would go in chunks of 8196 and then add the result, which means that While slightly worse for |
Still not sure if the precision ask here is just a bit high (due to catastrophic cancellation that the docs warn about) considering that this already uses 64bit floats internally, but the behavior is "reverted" in NumPy now. The precision here also potentially depends on the memory layout if X and Y are 2-dimensional... |
CI is no longer failing! ✅Successful run on Dec 23, 2024 |
Thanks @seberg. Since the CI is green again after the merge of numpy/numpy#28043, I think we can close.
Let's keep that in mind in case future changes cause this test to fail again. |
CI is still failing on Linux_Nightly.pylatest_pip_scipy_dev (Dec 22, 2024)
The text was updated successfully, but these errors were encountered: