How can I train SVM in Matlab, with more than 2 classes?

3 ビュー (過去 30 日間)
Diver
Diver 2015 年 6 月 28 日
回答済み: Ilya 2015 年 7 月 1 日
Hi;
I was trying to use fitcsvm to train and classify my data. However, I notice - correct me if I'm wrong - that fitcsvm could only be used with 2 classes (groups).
My data have more than 2 classes. Is there away to do classify them in matlab?
I did some googling and I read that some recommend to use fitcecoc , while others recommend to use out of the box code multisvm
Morover, other recommend to use discriminant analysis
Please, advise on best approach to go.
Thanking you.
  1 件のコメント
Image Analyst
Image Analyst 2015 年 6 月 29 日
Do you always know how many classes there will be? If so, why not try kmeans?

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

採用された回答

Ilya
Ilya 2015 年 7 月 1 日
multisvm appears to be built on top of the older, slower svmtrain function, while fitcecoc uses the newer, faster C++ implementation. fitcecoc offers more options and gets MathWorks tech support.

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by