Skip to content

Confusing convergence warning in coordinate descent. #13394

Closed

Description

@amueller

#11754 introduces a warning that is very confusing to me.

I get a bunch of warnings of the form:

ConvergenceWarning: Objective did not converge. You might want to increase the number of iterations. Duality gap: 6.524430864374153e-05, tolerance: 2.30509725

What's confusing is:

  • the tolerance is bigger than the duality gap, so I would assume that means convergence.
  • the tolerance is not what was passed, which is 0.001
  • the duality gap is smaller than the tolerance that was passed.

I have no idea what's going on here.

cc @rth @agramfort @jnothman @brentfagan @GaelVaroquaux

minimal example:

from sklearn.linear_model import LassoCV
from sklearn.datasets import load_boston
boston = load_boston()
lasso = LassoCV().fit(boston.data, boston.target)

Activity

  1. added this to the 0.21 milestone on Mar 5, 2019
  2. GaelVaroquaux commented on Mar 5, 2019

    @GaelVaroquaux
    Member

    Yes: I wasn't terribly happy with #11754. I shouldn't have approved it.

    @agramfort : this needs to be fixed before 0.21, elsewhere this warning will just confuse users and be of no good. Do you have a suggestion for a better wording?

  3. amueller commented on Mar 5, 2019

    @amueller
    MemberAuthor

    I think there's actually logical errors with when the warning is raised (see my comment on the issue). Or I might be misunderstanding.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions