I gather there's a lot of historical default behaviour in those metrics.
This results in a few quirks some of which are real problems, as in
https://github.com/scikit-learn/scikit-learn/issues/2094. It should be
cleaned up, but existing behaviour will need to be maintained for at least
two releases. Feel free to do the cleaning and submit a PR.
- Joel
On Wed, Aug 7, 2013 at 10:19 PM, Bertrand Thirion <bertrand.thir...@inria.fr
> wrote:
> Dear all,
>
> In the sklearn.metrics module, the precision_recall_fscore_support and
> precision_score have different default value for the "average" parameter,
> which seems a bit counterintuitive -- but I did not go deep into the code.
> Is this really the intended behavior ?
>
> def precision_score(y_true, y_pred, labels=None, pos_label=1,
> average='weighted')
> def precision_recall_fscore_support(y_true, y_pred, beta=1.0, labels=None,
> pos_label=1, average=None)
>
> Best,
>
> Bertrand
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________
> Scikit-learn-general mailing list
> Scikit-learn-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
>
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general