-
-
Notifications
You must be signed in to change notification settings - Fork 26.3k
MNT Clean-up deprecations for 1.8: algorithm param in AdaBoostClassifier #32262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
MNT Clean-up deprecations for 1.8: algorithm param in AdaBoostClassifier #32262
Conversation
sklearn/ensemble/_weight_boosting.py
Outdated
**BaseWeightBoosting._parameter_constraints, | ||
"algorithm": [StrOptions({"SAMME"}), Hidden(StrOptions({"deprecated"}))], | ||
} | ||
_parameter_constraints: dict = {**BaseWeightBoosting._parameter_constraints} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then we can simply remove this, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes indeed, I did not pay attention. Since all the parameters are fed to the parent class, they will get validated in the parent init, right ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They get validated in the decorator around fit
, which would use the values from the parent class (right @jeremiedbb ?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes it's a class attribute so it will simply inherit the one from its parent and use it.
I'd also push a |
Reference Issues/PRs
Clean up for the deprecation from #29997.
What does this implement/fix? Explain your changes.
Remove the
algorithm
param ofsklearn.ensemble.AdaBoostClassifier
.