How can I train SVM in Matlab, with more than 2 classes?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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
Please, advise on best approach to go.
Thanking you.
1 commentaire
Image Analyst
le 29 Juin 2015
Do you always know how many classes there will be? If so, why not try kmeans?
Réponse acceptée
Ilya
le 1 Juil 2015
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Discriminant Analysis dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!