필터 지우기
필터 지우기

Hello!! I have a vector of size "1*4006". The values are decimal numbers. These values are basically MFCC features. I want to apply multi-class SVM on it. My output will have 3 classes, that is, [0,1,2]. Someone please help me to do its code. I am n

조회 수: 1 (최근 30일)
Hello!! I have a vector of size "1*4006". The values are decimal numbers. These values are basically MFCC features. I want to apply multi-class SVM on it. My output will have 3 classes, that is, [0,1,2]. Someone please help me to do its code. I am new in this field. I have tried svmtrain function but i am not able to give input parameters properly.
thanks in advance

채택된 답변

Walter Roberson
Walter Roberson 2018년 2월 27일
... Unless, that is, you want to investigate techniques such as https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2099486/ which you would probably have to write your own code for.
  댓글 수: 2
SHWETA KHARA
SHWETA KHARA 2018년 2월 27일
hey I know to which class each input belongs to. All I am stuck at point is I am not getting how to give input to svm..
Walter Roberson
Walter Roberson 2018년 2월 27일
As discussed in https://www.mathworks.com/matlabcentral/answers/385076-hi-i-am-using-2017a-matlab-i-am-not-able-to-use-libsvm-on-it-the-image-shows-the-error-should#comment_540133, the tool you are using expects that one of the columns contains the output that is appropriate for that that input row -- expects that one of the columns will contain 0, 1, 2, or 3 for that row. You would mark that one row as Response and leave the other rows as Predictor.
If you have a separate variable that contains the class then build a new matrix of the samples concatenated with the known targets and tell the tool you are using which column of the combined matrix contains the targets.

댓글을 달려면 로그인하십시오.

추가 답변 (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