SVM Train and classify

4 views (last 30 days)
zohaib
zohaib on 28 Jan 2018
Commented: zohaib on 29 Jan 2018
I am trying to run this speech recognition code but its giving errors in svmtrain function. Data set i am using consists of 8 speech signals. Speech recognition
Please help regarding this to run this code.
  5 Comments
Image Analyst
Image Analyst on 28 Jan 2018
I fixed your formatting, but please read this for next time.
This does nothing:
Characterstring = Characterstring(1:end);
You're just setting the array equal to itself. According to the error, it wants net_TrainingSet and net_Labels to have the same number of rows, and you don't have that. Why not? How many rows DO you have in each array and why did you not set it up so that they were the same?
zohaib
zohaib on 29 Jan 2018
Thanks for your response. I am new to matlab and not good at it, i am attaching the code with modified code Run and dataset also. Please guide me how to fix this issue. how we can set rows of labels and training data. Wait for your help.

Sign in to comment.

Answers (0)

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!