Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DEP loss_function_ attribute in PassiveAggressiveClassifier #29088

Closed
@lorentzenchr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions