Error using svmpredict on libsvm

3 views (last 30 days)
Raúl
Raúl on 3 Jul 2014
Hi all,
Once I want to predict my following vectors of values in order to get the correct label, I get the following message.
"Length of label vector does not match # of instances.\n"
I have a multiclass SVM where labels goes from 1 to 9 so 9 rows of one column (9x1). I would like to examine this vector of labels with a single vector of row and n features. Is it possible? Why should I need the same number of rows from labels and vectors of testing? Can I modify the svmpredict.c file?
Thanks in advanced.
Raúl.

Answers (0)

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!