On 3 November 2011 08:32, Satrajit Ghosh <[email protected]> wrote:

> how do i get at the average f1_score if i have two labels 1 and -1 or 1
> and 0? it always seems to return the positive one.
>
> cheers,
>
> satra
>
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
>

I'm not sure I understand your problem.
To clarrify, your labels are something like:

labels_a = [1,-1,1,1,1,-1]
labels_b = [0, 1,1,1,0,0]

And you want to calculate the f_1?

f_1 should always be positive - its the harmonic mean of precision and
recall, both of which are bounded in [0,1].


-- 


My public key can be found at: http://pgp.mit.edu/
Search for this email address and select the key from "2011-08-19" (key id:
54BA8735)
Older keys can be used, but please inform me beforehand (and update when
possible!)
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to