On 01/31/2014 09:50 AM, Gael Varoquaux wrote: >> 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 This has come up before. I am not 100% what the trouble was. I put this in there as a bug fix. There was a PR, not sure where it went. cross_val_score is not called by GridSearchCV, right?
I'll try to find out what I was thinking.... Andy ------------------------------------------------------------------------------ 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 Scikit-learn-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/scikit-learn-general