Skip to content

Add multi-label support to the confusion matrix metric #3452

Closed

Description

@arjoly

Currently the confusion_matrix support binary and multi-class classification, but not multi-label data yet.

Activity

  1. jnothman commented on Jul 20, 2014

    @jnothman
    Member

    What does confusion matrix mean in a multilabel context?

    On 20 July 2014 20:34, Arnaud Joly [email protected] wrote:

    Currently the confusion_matrix support binary and multi-class
    classification, but not multi-label data yet.

    —
    Reply to this email directly or view it on GitHub
    #3452.

  2. arjoly commented on Jul 20, 2014

    @arjoly
    MemberAuthor

    The same as in the multiclass case, but the notion of true positive, true negative, false negative are different the multi-label case.

    For example, this is explained in http://www.cnts.ua.ac.be/~vincent/pdf/microaverage.pdf

  3. jnothman commented on Jul 20, 2014

    @jnothman
    Member

    Okay, not actually a confusion matrix in the multiclass sense (which label
    is confused with which), but a binarized error analysis.

    On 20 July 2014 22:50, Arnaud Joly [email protected] wrote:

    The same as in the multiclass case, but the notion of true positive,
    true negative, false negative are different the multi-label case.

    For example, this is explain
    http://www.cnts.ua.ac.be/~vincent/pdf/microaverage.pdf

    —
    Reply to this email directly or view it on GitHub
    #3452 (comment)
    .

  4. arjoly commented on Jul 20, 2014

    @arjoly
    MemberAuthor

    Okay, not actually a confusion matrix in the multiclass sense (which label
    is confused with which), but a binarized error analysis.

    Then we might want to add a function. It might be binarized_confusion_matrix or multilabel_confusion_matrix.

  5. Magellanea commented on Aug 31, 2014

    @Magellanea

    @arjoly @jnothman This implements the multilabel_confusion_matrix function which computes the values True positives, true negatives, false positives and false negatives for a multi-label classification problem, was that what you expected to be the behavior of the multilabel_confusion_matrix

  6. Florents-Tselai commented on Sep 26, 2015

    @Florents-Tselai

    What's the status on this?

  7. arjoly commented on Sep 28, 2015

    @arjoly
    MemberAuthor

    The pr #3452 has stalled feel free to continue if you want to finish it.

  8. pramitchoudhary commented on Jun 17, 2016

    @pramitchoudhary

    Is there any plan, or is someone working on pr #3452 ?

  9. Spandan-Madan commented on Apr 5, 2017

    @Spandan-Madan

    I am planning to add multi label classification metrics, including confusion matrix. There is a NIPS 2012 paper which explains great metrics for multi-label context. Will put in the effort if I think there's enough people who still need it. Is it still needed? Or is to not that important for the community?

  10. ChristianSch commented on Apr 5, 2017

    @ChristianSch

    Which paper exactly are you referring to? I find the metrics quite ambiguous in general use. Some use F_1/precision/recall/subset accuracy micro/macro and some use other metrics. (I use the former)

    I'm always interested in bringing more native ml support to sklearn. But also be aware of other approaches like scikit-multilearn, or my own small skml for scikit compatible multi label classification. I find the things for ml in sklearn lacking and quite unusable.

  11. arjoly commented on Apr 13, 2017

    @arjoly
    MemberAuthor

    Adding the most important multi-label algorithms is very interesting in my opinion. This is indeed a very long term project.

  12. carlthome commented on Jan 17, 2019

    @carlthome

    @Spandan-Madan, which NIPS 2012 paper are you thinking of?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    EasyEnhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions