You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Documentation of label-binarizer and multi-label format #4639
From the docs I feel it is not entirely clear that using label indicators means doing multi-label classification.
I think this should be better documented in the multi-class narratives, the OneVsRestClassifier and the LabelBinarizer.
Applying a label-binarizer to your y will result in quite different results, which is obvious if you know that this will switch the problem to a multi-label problem, but is somewhat unintuitive for the uninitiated.
@pieteradejong feel free to get started on this. Start by reading the multi-class and multi-label documentation and make sure to understand the differences between multi-class and multi-label.
@amueller does MultiLabelBinarizer also convert the other way, that is, from a binary matrix to a list of tuples? for example, from:
array([[0, 0, 1, 1, 1],
[0, 0, 1, 0, 0],
[1, 1, 0, 1, 0],
[1, 1, 1, 1, 1],
[1, 1, 1, 0, 0]])
to:
y = [[2, 3, 4], [2], [0, 1, 3], [0, 1, 2, 3, 4], [0, 1, 2]]
@amueller are you looking for any comments to be added specifically to 1.12.1, 1.12.2 or both? It seems pretty clear in the former, that you're doing multi label classification since that is the title of the section?
On the other hand, the multilabel section in OneVsRest could use some more comments perhaps?
Activity
dotsdl commentedon Jul 12, 2015
Working on this one now.
dotsdl commentedon Jul 22, 2015
Releasing this one for someone else. Not working on it now.
pieteradejong commentedon Sep 8, 2015
Is there till a need for someone to take this on? If so, it seems like a great way to get started with scikit-learn - any pointers?
amueller commentedon Sep 8, 2015
@pieteradejong feel free to get started on this. Start by reading the multi-class and multi-label documentation and make sure to understand the differences between multi-class and multi-label.
andylamb commentedon Sep 20, 2015
@pieteradejong, are you still working on this?
pieteradejong commentedon Sep 22, 2015
@andylamb yes, am working on it.
have run some searches for 'multi-class' and 'multi-label' in the source, would be happy to hear about any specific locations I should look at.
pieteradejong commentedon Oct 3, 2015
currently proceeding by looking at this file:
https://github.com/scikit-learn/scikit-learn/blob/master/doc/modules/multiclass.rst
@amueller is this the right place to look?
pieteradejong commentedon Oct 3, 2015
@amueller there is a broken image in the URL mentioned in my previous comment;
https://github.com/scikit-learn/scikit-learn/blob/master/doc/auto_examples/plot_multilabel.html
I'd be happy to reproduce it and add it back in via PR; could you provide any instructions as to how that image was produced?
amueller commentedon Oct 12, 2015
multiclass.rst is the right place to look.
Can you link to where the image is broken on the website?
amueller commentedon Oct 12, 2015
You mean the bottom right here:
http://scikit-learn.org/dev/auto_examples/plot_multilabel.html
?
There is already an issue for that: #4643
pieteradejong commentedon Oct 24, 2015
@amueller Yes, I think that's the one. Glad to see there's an existing issue.
Will propose some changes to multiclass.rst.
pieteradejong commentedon Nov 16, 2015
working on this now
pieteradejong commentedon Nov 17, 2015
@amueller does MultiLabelBinarizer also convert the other way, that is, from a binary matrix to a list of tuples? for example, from:
array([[0, 0, 1, 1, 1],
[0, 0, 1, 0, 0],
[1, 1, 0, 1, 0],
[1, 1, 1, 1, 1],
[1, 1, 1, 0, 0]])
to:
y = [[2, 3, 4], [2], [0, 1, 3], [0, 1, 2, 3, 4], [0, 1, 2]]
pieteradejong commentedon Nov 17, 2015
@amueller are you looking for any comments to be added specifically to 1.12.1, 1.12.2 or both? It seems pretty clear in the former, that you're doing multi label classification since that is the title of the section?
On the other hand, the multilabel section in OneVsRest could use some more comments perhaps?
devashishd12 commentedon Jan 14, 2016
@pieteradejong are you still working on this? If you've already raised a pr can you please pin this issue? Thanks!
pieteradejong commentedon Jan 14, 2016
yes I am working on this
devashishd12 commentedon Jan 14, 2016
@pieteradejong alright awesome! Waiting for a pr :)