> if not isinstance(score, numbers.Number):
>     raise ValueError("scoring must return a number, got %s (%s)"
>                             " instead." % (str(score), type(score)))

I am not opposed to making this check more relaxed: we could add an 'or
(isinstance(score, np.ndarray) and score.dtype.kind in ('i', 'f'))'.

PR welcomed

G

------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to