Skip to content

DEP loss_function_ attribute in PassiveAggressiveClassifier #29088

Closed

Description

@lorentzenchr

#27979 deprecate the attribute loss_function_ that accesses a Cython extension class in SGDClassifier and SGDOneClassSVM. Unfortunately, PassiveAggressiveClassifier also inherits the loss_function_ attribute from BaseSGDClassifier and this was overlooked in #27979.

Now, what do we do?

  1. Proper deprecation cycle delaying Plan for SGD and SAGA loss function migration #28049 for another year.
  2. Remove it with 1.6 anyway.
  3. Add the loss function as python function in PassiveAggressiveClassifier only, deprecate and remove in 2 releases.

Activity

  1. added
    Needs Triage
    on May 23, 2024
  2. jeremiedbb commented on May 23, 2024

    @jeremiedbb
    Member

    Given that we do get a warning when accessing the loss_function_ attribute, because it's done in the base class fortunately, I'd go with 2.. We should still add the deprecated directives in PassiveAggressiveClassifier's docstring for the time being though.

  3. added
    Needs Decision
    and removed
    Needs Triage
    on May 23, 2024
  4. adrinjalali commented on May 23, 2024

    @adrinjalali
    Member

    We can also deprecate and remove the class altogether 😝

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

    APINeeds Decision

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions