フィルターのクリア

how to classify with svm

2 ビュー (過去 30 日間)
Fardin Gorgini
Fardin Gorgini 2018 年 1 月 28 日
回答済み: Bernhard Suhm 2018 年 2 月 1 日
HI
I have a number of photos that I have featured, that is, 11 properties for each photo. The number of photos is 770. I saved the data to an Excel file, which is 11 * 770.
How should I read this file?
And how do I train an SVM model using these features with svm (rbf, mlp, lvq)?
For svm, I need to take input from the Excel file.
Please help me soon.
  1 件のコメント
Image Analyst
Image Analyst 2018 年 1 月 28 日
To read the file you can use readtable(). Then follow the examples with the SVM. For example, you might try the "Classification Learner" app on the Apps tab of the tool ribbon. Attach your Excel workbook if you need more help and maybe someone will try something.

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

回答 (1 件)

Bernhard Suhm
Bernhard Suhm 2018 年 2 月 1 日
The table needs to have the various observations as rows. Alternatively to the ClassificationLearnerApp, you can train an SVM using the fitcsvm() function.
You can switch to a different kernel using the 'KernelFunction' input argument, for RBF it would be 'rbf'.
See https://www.mathworks.com/help/stats/fitcsvm.html for more details.

Community Treasure Hunt

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

Start Hunting!

Translated by