Skip to content

test_ridge_regression_vstacked_X is not stable #23014

Activity

  1. added
    Needs Triage
    on Apr 1, 2022
  2. added
    module:test-suite
    and removed
    Needs Triage
    on Apr 1, 2022
  3. lorentzenchr commented on Apr 1, 2022

    @lorentzenchr
    Member

    was it tested on "all" random seeds ?

    Yes, locally on my machine.

  4. lorentzenchr commented on Apr 1, 2022

    @lorentzenchr
    Member

    SKLEARN_TESTS_GLOBAL_RANDOM_SEED="all" pytest sklearn/linear_model/tests/test_ridge.py now also has one failing test for me. I'll fix it.

  5. lorentzenchr commented on Apr 1, 2022

    @lorentzenchr
    Member

    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].

  6. jeremiedbb commented on Apr 1, 2022

    @jeremiedbb
    MemberAuthor

    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 ?

  7. TomDLT commented on Apr 4, 2022

    @TomDLT
    Member

    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.

  8. jeremiedbb commented on Apr 4, 2022

    @jeremiedbb
    MemberAuthor

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    module:linear_modelmodule:test-suite

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions