How to use svmpredict (libsvm)

20 Ansichten (letzte 30 Tage)
Jakob Sørensen
Jakob Sørensen am 17 Feb. 2014
Kommentiert: Almost Artsy am 18 Mär. 2019
Hey,
I'm trying to use libsvm in Matlab, but I am a bit confused regarding the svmpredict() function. The first input to it, is called testing_label_vector. As I understand it, that would be the labels of the testing data, but that doesn't really make sense, since that is what you are trying to predict. Can someone help me clarify what this input should be?
  1 Kommentar
Vahid Moradi
Vahid Moradi am 23 Feb. 2014
Hi,I need using method libsvm and explain about libsvm'parameters

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Jakob Sørensen
Jakob Sørensen am 10 Mär. 2014
Bearbeitet: Jakob Sørensen am 10 Mär. 2014
For further reference I figured it out myself. The testing_label_vector can be added to calculate the accuracy of the prediction. If you don't have it, a zero vector of the correct size should be fine. The reported accuracy will then of course not hold though.
P.S. I know it's lame accepting my own answer, but I don't like unresolved issues :-)
  2 Kommentare
Walter Roberson
Walter Roberson am 23 Mai 2015
jack mm commented "it is correct"
Almost Artsy
Almost Artsy am 18 Mär. 2019
my svmpredict give me 0x0 matrix output. can you help me solve this problem?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by