ntucllab / libact

Pool-based active learning in Python
http://libact.readthedocs.org/
BSD 2-Clause "Simplified" License
777 stars 175 forks source link

multilabel_plot.py Error #176

Closed TingNLP closed 4 years ago

TingNLP commented 4 years ago

1

lb = lbr.label(X) It's work for running multi-class because we have only one label we will get. but if we run multi-label, it seems not work due to we will get more than one label.

How to modify it? thanks

yangarbiter commented 4 years ago

I see, I think it can be change to the following (on line 34):

return yy[np.random.choice(np.arange(len(yy)), 1)[0]]

I will fix this bug in later version.

Thanks for reporting the bug.