Repository navigation
TST add HalvingSearchCV to common test - #20203
Conversation
|
@NicolasHug Could you have a look at this PR. We quite change the |
NicolasHug
left a comment
There was a problem hiding this comment.
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 |
ogrisel
left a comment
There was a problem hiding this comment.
The current state of this PR looks good to me. I did not follow the full discussion, but have your concerns been addressed @NicolasHug?
NicolasHug
left a comment
There was a problem hiding this comment.
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. |
|
Thanks @glemaitre and everybody else! |
Follow-up of #20202
This PR implements:
refitin the__init__by adding a private method overwritten inBaseHalvingSearchCV;