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