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
DEP loss_function_ attribute in PassiveAggressiveClassifier #29088
#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.
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.
Activity
jeremiedbb commentedon May 23, 2024
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 with2.. We should still add the deprecated directives inPassiveAggressiveClassifier's docstring for the time being though.adrinjalali commentedon May 23, 2024
We can also deprecate and remove the class altogether 😝