[scikit-learn] modifying CV score
Jonathan Taylor
jonathan.taylor at stanford.edu
Wed Jan 4 16:47:29 EST 2017
(Think this is right reply to from a digest... If not, apologies)
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
...
estimator.fit(X_train, y_train)
scorer = estimator.score
return scorer(X_test, y_test)
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?
--
Jonathan Taylor
Dept. of Statistics
Sequoia Hall, 137
390 Serra Mall
Stanford, CA 94305
Tel: 650.723.9230
Fax: 650.725.8977
Web: http://www-stat.stanford.edu/~jtaylo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20170104/696f697d/attachment.html>
More information about the scikit-learn
mailing list