[scikit-learn] Fwd: sample_weight parameter is not split when used in GridSearchCV

Manuel CASTEJÓN LIMAS mcasl at unileon.es
Thu Jun 22 19:17:29 EDT 2017


Dear Joel,
I'm just passing an iterable as I would do with any other sequence of
parameters to tune. In this case the list only has one element to use but
in general I ought to be able to pass a collection of vectors.
Anyway, I guess that that issue is not the cause of the problem.

El 23 jun. 2017 1:04 a. m., "Joel Nothman" <joel.nothman at gmail.com>
escribió:

> why are you passing [my_sample_weights] rather than just my_sample_weights?
>
> On 23 Jun 2017 7:49 am, "Julio Antonio Soto de Vicente" <julio at esbet.es>
> wrote:
>
>> Hi Manuel,
>>
>> Are you sure that you are using the latest version (or at least >0.17)?
>> The code for splitting the sample weights in GridSearchCV has been there
>> for a while now...
>>
>> --
>> Julio
>>
>> El 22 jun 2017, a las 23:33, Manuel Castejón Limas <
>> manuel.castejon at gmail.com> escribió:
>>
>> Dear all,
>> I posted the full question on StackOverflow and as it contains some
>> figures I refer you to that post.
>>
>> https://stackoverflow.com/questions/44661926/sample-weight-p
>> arameter-shape-error-in-scikit-learn-gridsearchcv/44662285#44662285
>>
>> I currently  believe that this issue is a bug and I opened an issue on
>> GitHub.
>>
>> To sum up, the issue is that GridSearchCV does not handle the splitting
>> of the sample_weight vector during cross validation.
>>
>> Nota bene: cross_val_score seems to handle the splitting OK, this issue
>> seems to occurr only in GridSearchCV.
>>
>> Any comments enlightening me and showing me how wrong I am are most
>> welcome.
>>
>>
>>
>>
>> _______________________________________________
>> scikit-learn mailing list
>> scikit-learn at python.org
>> https://mail.python.org/mailman/listinfo/scikit-learn
>>
>>
>> _______________________________________________
>> scikit-learn mailing list
>> scikit-learn at python.org
>> https://mail.python.org/mailman/listinfo/scikit-learn
>>
>>
> _______________________________________________
> scikit-learn mailing list
> scikit-learn at python.org
> https://mail.python.org/mailman/listinfo/scikit-learn
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20170623/3d449601/attachment.html>


More information about the scikit-learn mailing list