<div dir="ltr">Well, it returns the equivalent of<div><br></div><div>lambda estimator, X, y: estimator.score(X, y)</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 5 January 2017 at 08:47, Jonathan Taylor <span dir="ltr"><<a href="mailto:jonathan.taylor@stanford.edu" target="_blank">jonathan.taylor@stanford.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">(Think this is right reply to from a digest... If not, apologies)<div><br></div><div>Thanks for the pointers. From what I read on the API, I gather that for an estimator with a score method, inside GridSearchCV there will be pseudo-code like</div><div><br></div><div>    ...</div><div>    estimator.fit(X_train, y_train)<br></div><div>    scorer = estimator.score</div><div>    return scorer(X_test, y_test)<br></div><div>    </div><div><br></div><div>For custom scores that are not methods of an estimator, I guess the `make_scorer` function returns a callable with the same signature as a score method of an estimator?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-- <br><div class="m_-1065617948888867787gmail_signature">Jonathan Taylor                          <br>Dept. of Statistics                      <br>Sequoia Hall, 137                          <br>390 Serra Mall<br>Stanford, CA 94305<br><span>Tel:   <span id="m_-1065617948888867787gmail-gc-number-0" class="m_-1065617948888867787gmail-gc-cs-link" title="Call with Google Voice"><span id="m_-1065617948888867787gc-number-2" class="m_-1065617948888867787gc-cs-link" title="Call with Google Voice"><a href="tel:(650)%20723-9230" value="+16507239230" target="_blank">650.723.9230</a></span></span></span><br><span>Fax:   <span id="m_-1065617948888867787gmail-gc-number-1" class="m_-1065617948888867787gmail-gc-cs-link" title="Call with Google Voice"><span id="m_-1065617948888867787gc-number-3" class="m_-1065617948888867787gc-cs-link" title="Call with Google Voice"><a href="tel:(650)%20725-8977" value="+16507258977" target="_blank">650.725.8977</a></span></span></span><br>Web: <a href="http://www-stat.stanford.edu/~jtaylo" target="_blank">http://www-stat.stanford.edu/~<wbr>jtaylo</a></div>
</div></font></span></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><br></div>