-
-
Notifications
You must be signed in to change notification settings - Fork 26k
TST add HalvingSearchCV to common test #20203
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
TST add HalvingSearchCV to common test #20203
Conversation
@NicolasHug Could you have a look at this PR. We quite change the |
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.
Are the changes to refit
needed?
I personally don't find the static method to be much more readable but maybe there's a good reason?
If we keep these changes, we'll need to remove _refit_callable
I think. And we might as well ensure that self.refit
is a bool for SH.
I forgot to remove it indeed. Here, the idea was just to move at as a static method to be overwritten in successive halving.
Right, we can do that and add a test. A question regarding this point: is there a reason for not supporting multimeric? |
Hm, fair. Could we just set
I think it's because with multimetric scoring we would not know which scorer to use at each round to select the "survivors" for the next iteration. It sounds like |
Would not it be better to pass it to
In grid-search, we use |
yes I think this check will be useful regardless of the strategy!
There kinda is IMHO: we use |
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.
The current state of this PR looks good to me. I did not follow the full discussion, but have your concerns been addressed @NicolasHug?
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 @glemaitre , LGTM modulo my 2 previous comments but I'm sure they'll be properly addressed (or ignored if not relevant) :)
probably Let me make the changes. |
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. Thanks @glemaitre !
Thanks @glemaitre and everybody else! |
Follow-up of #20202
This PR implements:
refit
in the__init__
by adding a private method overwritten inBaseHalvingSearchCV
;