pycm icon indicating copy to clipboard operation
pycm copied to clipboard

Multilabel support

Open adrianog opened this issue 6 years ago • 6 comments

Description

Add multilabel support

adrianog avatar Jun 10 '19 20:06 adrianog

We thought about this option, but it's not easy, most of PyCM parameters are not extendable to multilabel mode. @alirezazolanvari what is your opinion ?

sepandhaghighi avatar Jun 10 '19 22:06 sepandhaghighi

These should be good: Precision, recall and F1 score

And also: Micro F1-score Hamming loss Jaccard index

Interesting link - micro and macro averaging - https://archive.is/fiF2C

adrianog avatar Jun 11 '19 15:06 adrianog

Does this ticket cover the case where you have something like this?

Actual ["LabelA","LabelB"]

Predicted ["LabelA","LabelC","LabelD"]

radiantone avatar Jul 31 '19 11:07 radiantone

Does this ticket cover the case where you have something like this?

Actual ["LabelA","LabelB"]

Predicted ["LabelA","LabelC","LabelD"]

Hi @radiantone Yes, this issue talk about multi-label classification. For example :

>>> actual = [["LabelA","LabelB"],["LabelC","LabelB"],["LabelC"]]
>>> predict = [["LabelA","LabelB"],["LabelB"],["LabelA","LabelC","LabelD"]]

As I mentioned above, it's not easy, because most of PyCM parameters are not extendable to multi-label mode. We will work on it in the future.

sepandhaghighi avatar Aug 01 '19 14:08 sepandhaghighi

Any alternatives that support Multi-labels classification report?

SoufianeDataFan avatar Jul 23 '20 19:07 SoufianeDataFan

Any alternatives that support Multi-labels classification report?

You can use scikit-learn multilabel confusion matrix

sepandhaghighi avatar Jul 27 '20 22:07 sepandhaghighi