-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
AdaBoost: allow base_estimator=None #26242
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
AdaBoost: allow base_estimator=None #26242
Conversation
This would need also a test, and an item in the changelog. |
d42c7ef
to
c999b14
Compare
c999b14
to
f9c4ce3
Compare
@adrinjalali, thanks for the review. I added a test and modified Also, there still remains a small bug in |
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.
Thanks, this LGTM.
On the other hand such code will crash after 1.4 anyway when the deprecated parameter is be removed. I opted not to change that part for now, but can easily add a commit that does.
Yeah, we can just leave it alone, it'll fix itself when we remove support for base_estimator
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.
LGTM modulo those trailing underscores.
@betatim which trailing underscores? |
Trailing underscores in the changelog were removed in the last commit. Sorry. |
Reference Issues/PRs
Fixes #26241.
What does this implement/fix? Explain your changes.
To ensure that the (deprecated) explicit
base_estimator=None
doesn't stop working, add a (likely forgotten)None
to a list allowed values in _parameter_constraints. Everything else already seems to be setup properly.