-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to handle multi-classification using one-vs-rest method? #15
Comments
From @cjlin1 on April 19, 2016 10:6 you don't need to handle it. Liblinear directly supports 1-vs-rest Billy writes:
|
From @jm-huang on April 20, 2016 1:18 can you kindly tell me how can i set the format of "train_labels" with multi-class ? what i did make wrong results. Thanks very much. |
From @jm-huang on April 20, 2016 1:30 I using this format: the first part is the labels, and the second part is the features.
|
From @rofuyu on March 7, 2017 20:37 You have a multi-label dataset (more than 1 positive labels for each instance) instead of a mulit-class dataset. The current liblinear only supports multi-class classification. If the number of labels in your case is small, you can re-label them using the index to the power set: e.g., |
From @jm-huang on April 19, 2016 9:40
I am a little confusing while using this package for multi-classification. can anyone tell me how to do it ? Thanks.
what i had try:
but it arise some errors:
Traceback (most recent call last):
File "C:\Users\Jiaming\Dropbox\Internship in ADSC\DeepWalk\experiments\classifier.py", line 69, in process
prob = problem(train_labels, train_datas)
File "C:\Users\Jiaming\Anaconda2\lib\site-packages\liblinear-210-py2.7.egg\liblinear\liblinear.py", line 107, in init
for i, yi in enumerate(y): self.y[i] = y[i]
TypeError: a float is required
Copied from original issue: cjlin1#21
The text was updated successfully, but these errors were encountered: