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

Skip to content

Conversation

FrancoisPgm
Copy link
Contributor

Reference Issues/PRs

Clean up for the deprecation from #29997.

What does this implement/fix? Explain your changes.

Remove the algorithm param of sklearn.ensemble.AdaBoostClassifier.

Copy link

github-actions bot commented Sep 24, 2025

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 0a050be. Link to the linter CI: here

**BaseWeightBoosting._parameter_constraints,
"algorithm": [StrOptions({"SAMME"}), Hidden(StrOptions({"deprecated"}))],
}
_parameter_constraints: dict = {**BaseWeightBoosting._parameter_constraints}
Copy link
Member

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?

Copy link
Contributor Author

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 ?

Copy link
Member

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 ?)

Copy link
Contributor Author

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.

@adrinjalali
Copy link
Member

I'd also push a [doc build] commit to test the documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants