<div dir="auto">Dear Joel,<div dir="auto">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.</div><div dir="auto">Anyway, I guess that that issue is not the cause of the problem.</div></div><div class="gmail_extra"><br><div class="gmail_quote">El 23 jun. 2017 1:04 a. m., "Joel Nothman" <<a href="mailto:joel.nothman@gmail.com">joel.nothman@gmail.com</a>> escribió:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">why are you passing [my_sample_weights] rather than just my_sample_weights?</div><div class="gmail_extra"><br><div class="gmail_quote">On 23 Jun 2017 7:49 am, "Julio Antonio Soto de Vicente" <<a href="mailto:julio@esbet.es" target="_blank">julio@esbet.es</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Hi Manuel,</div><div id="m_-7280595001254306069m_5718660384480227196AppleMailSignature"><br></div><div id="m_-7280595001254306069m_5718660384480227196AppleMailSignature">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...<br><br>--<div>Julio</div></div><div><br>El 22 jun 2017, a las 23:33, Manuel Castejón Limas <<a href="mailto:manuel.castejon@gmail.com" target="_blank">manuel.castejon@gmail.com</a>> escribió:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div class="gmail_quote"><div dir="ltr">Dear all,<div>I posted the full question on StackOverflow and as it contains some figures I refer you to that post. </div><div><br></div><div><a href="https://stackoverflow.com/questions/44661926/sample-weight-parameter-shape-error-in-scikit-learn-gridsearchcv/44662285#44662285" target="_blank">https://stackoverflow.com/ques<wbr>tions/44661926/sample-weight-p<wbr>arameter-shape-error-in-scikit<wbr>-learn-gridsearchcv/44662285#<wbr>44662285<br></a></div><div><br></div><div>I currently believe that this issue is a bug and I opened an issue on GitHub.</div><div><br></div><div>To sum up, the issue is that GridSearchCV does not handle the splitting of the sample_weight vector during cross validation.</div><div><br></div><div>Nota bene: cross_val_score seems to handle the splitting OK, this issue seems to occurr only in GridSearchCV.</div><div><br></div><div>Any comments enlightening me and showing me how wrong I am are most welcome.</div><div><br></div><div><br></div><div><br></div></div>
</div><br></div>
</div></blockquote><blockquote type="cite"><div><span>______________________________<wbr>_________________</span><br><span>scikit-learn mailing list</span><br><span><a href="mailto:scikit-learn@python.org" target="_blank">scikit-learn@python.org</a></span><br><span><a href="https://mail.python.org/mailman/listinfo/scikit-learn" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/scikit-learn</a></span><br></div></blockquote></div><br>______________________________<wbr>_________________<br>
scikit-learn mailing list<br>
<a href="mailto:scikit-learn@python.org" target="_blank">scikit-learn@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/scikit-learn" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/scikit-learn</a><br>
<br></blockquote></div></div>
<br>______________________________<wbr>_________________<br>
scikit-learn mailing list<br>
<a href="mailto:scikit-learn@python.org">scikit-learn@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/scikit-learn" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/scikit-learn</a><br>
<br></blockquote></div></div>