Skip to content
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

!HELP: how to use svm_train function #66

Open
mm12344 opened this issue Apr 12, 2017 · 0 comments
Open

!HELP: how to use svm_train function #66

mm12344 opened this issue Apr 12, 2017 · 0 comments

Comments

@mm12344
Copy link

mm12344 commented Apr 12, 2017

Does anyone know how to use the svm_train function?
I have followed the tutorial steps to use affine_train for image classification training, but the results were not very ideal. I want to change the training function into the svm_train. But the input of svm_train is different, I've got the following errors:
`Error using svmtrain (line 234)
Y must be a vector or a character array.

Error in svm_train (line 168)
model.svm = svmtrain(double(feature_class.'), ...

Error in demo3 (line 18)
model = svm_train(db1, train_set, svm_options);`
Y represents the features of all images which is 6814872 single array, but it seems that it can only be a vector, like maybe a 14872 array. I don't know how to fix it. Is there anyone can help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant