You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_ridge_regression_vstacked_X is not stable #23014
But for me, it fails in test_ridge_fit_intercept_sparse[94-False-lbfgs], on the Azure CI link, it fails in test_ridge_regression_vstacked_X[wide-5-True-sag].
Really weird, I restarted the run and now it passes. I didn't find any anything non deterministic in test_ridge_regression_vstacked_X. Is it possible that Ridge(solver="sag") is not completely deterministic even on fixed random_state ?
I got an error on test_ridge_regression_vstacked_X[long-16-False-sag], second time on test_ridge_regression_vstacked_X[long-63-True-sag], then no error running the tests 5 times, then error on test_ridge_regression_vstacked_X[wide-75-True-sag], ...
Is it possible that Ridge(solver="sag") is not completely deterministic even on fixed random_state ?
It should not be the case, so there seems to be a bug.
If sag uses BLAS, it's possible that rounding errors accumulate differently because of the multi-threading, (or maybe it's in the construction of the test).
Activity
lorentzenchr commentedon Apr 1, 2022
Yes, locally on my machine.
lorentzenchr commentedon Apr 1, 2022
SKLEARN_TESTS_GLOBAL_RANDOM_SEED="all" pytest sklearn/linear_model/tests/test_ridge.pynow also has one failing test for me. I'll fix it.lorentzenchr commentedon Apr 1, 2022
But for me, it fails in
test_ridge_fit_intercept_sparse[94-False-lbfgs], on the Azure CI link, it fails intest_ridge_regression_vstacked_X[wide-5-True-sag].jeremiedbb commentedon Apr 1, 2022
Really weird, I restarted the run and now it passes. I didn't find any anything non deterministic in test_ridge_regression_vstacked_X. Is it possible that Ridge(solver="sag") is not completely deterministic even on fixed random_state ?
TomDLT commentedon Apr 4, 2022
I got an error on
test_ridge_regression_vstacked_X[long-16-False-sag], second time ontest_ridge_regression_vstacked_X[long-63-True-sag], then no error running the tests 5 times, then error ontest_ridge_regression_vstacked_X[wide-75-True-sag], ...It should not be the case, so there seems to be a bug.
jeremiedbb commentedon Apr 4, 2022
If
saguses BLAS, it's possible that rounding errors accumulate differently because of the multi-threading, (or maybe it's in the construction of the test).