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 CenterFile Exchange에서 Statistics 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