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

조회 수: 1 (최근 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개)

카테고리

Help CenterFile Exchange에서 Discriminant Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by