2013/12/5 Joel Nothman <[email protected]>:
> This is a frequent request, and hopefully we will soon find consensus on an
> API for it. Please see
> https://github.com/scikit-learn/scikit-learn/issues/1850 and offer any
> suggestions!
The trick for now is to define a custom scorer that returns the score
you're optimizing for and records the other scores somewhere else:
class FancyScorer(object):
def __call__(self, estimator, X, y):
pred = estimator.predict(X, y)
self.f1_score = f1_score(y, pred)
return accuracy_score(y, pred)
or something like that.
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general