On 03/11/2013 01:24 AM, Joel Nothman wrote:
On 03/10/2013 16:42:44 +0100, Andreas Mueller wrote:
If you have an elegant solution, I'm all ears, though ;)
Here's a hacky solution for my particular case which requires git
revert 2d9cb81b8 to work at HEAD. It works by returning a Score object
from the Scorer, which pretends it is the fscore value when it is the
operand of + or *:
That indeed is quite hacky.
I'm not even entirely sure why it works (isn't the mean computed using
numpy?)
More generically, you might loosen the requirement that
Scorer.__call__ returns a number, as long as it returns something with
__float__() as in
https://github.com/jnothman/scikit-learn/commit/51d3ea. However,
converting to float may mess up results where scores are integers.
This could be a solution. How will converting to float mess up results?
I'm working on the GridSearchCV quite a bit currently and I'll keep you
use case in mind.
Maybe I'll find a better way.
Cheers,
Andy
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general