Hi Christian.
Yes, the score_func option is intended exactly for this purpose.
If you are using GridSearchCV, you have to take care of whether you have
a score or a loss function, but if you overload ``score``, you have
the same problem.

Cheers,
Andy


On 09/21/2012 08:43 PM, Christian Jauvin wrote:
> Hi Andreas,
>
> You mean that I could use cross_val_score's score_func argument? I
> tried it once, and it didn't work for some reason, and so I sticked
> with the inheritance solution, which is really a 3 line modification
> anyway. Is there another way?
>
> Best,
>
> Christian
>
>
> On 21 September 2012 15:36, Andreas Mueller <amuel...@ais.uni-bonn.de> wrote:
>> Hi Christian.
>> Why do you need to inherit from the classifier to use a different
>> scoring function?
>> That should really not be necessary.
>>
>> Cheers,
>> Andy
>>
>> ------------------------------------------------------------------------------
>> Got visibility?
>> Most devs has no idea what their production app looks like.
>> Find out how fast your code is with AppDynamics Lite.
>> http://ad.doubleclick.net/clk;262219671;13503038;y?
>> http://info.appdynamics.com/FreeJavaPerformanceDownload.html
>> _______________________________________________
>> Scikit-learn-general mailing list
>> Scikit-learn-general@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
> ------------------------------------------------------------------------------
> Got visibility?
> Most devs has no idea what their production app looks like.
> Find out how fast your code is with AppDynamics Lite.
> http://ad.doubleclick.net/clk;262219671;13503038;y?
> http://info.appdynamics.com/FreeJavaPerformanceDownload.html
> _______________________________________________
> Scikit-learn-general mailing list
> Scikit-learn-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general


------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to