How to use svmpredict (libsvm)

35 ビュー (過去 30 日間)
Jakob Sørensen
Jakob Sørensen 2014 年 2 月 17 日
コメント済み: Almost Artsy 2019 年 3 月 18 日
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 件のコメント
Vahid Moradi
Vahid Moradi 2014 年 2 月 23 日
Hi,I need using method libsvm and explain about libsvm'parameters

サインインしてコメントする。

採用された回答

Jakob Sørensen
Jakob Sørensen 2014 年 3 月 10 日
編集済み: Jakob Sørensen 2014 年 3 月 10 日
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 件のコメント
Walter Roberson
Walter Roberson 2015 年 5 月 23 日
jack mm commented "it is correct"
Almost Artsy
Almost Artsy 2019 年 3 月 18 日
my svmpredict give me 0x0 matrix output. can you help me solve this problem?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by