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

Manuel Castejón Limas manuel.castejon at gmail.com
Thu Jun 22 17:33:52 EDT 2017

Dear all,
I posted the full question on StackOverflow and as it contains some figures
I refer you to that post.


I currently  believe that this issue is a bug and I opened an issue on

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20170622/b4186564/attachment.html>

More information about the scikit-learn mailing list