cost function in classification learner app
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How is it possible to use a costfunction/ penalty function for a Support Vector Machine in the classification Learner App?
If it is not possible, is there a way to train a SVM manually for more than 2 classes?
0 commentaires
Réponse acceptée
Stephan
le 8 Mai 2018
Hi,
a cost function is not available as far as i know. For more than two classes you could use the function
fitcecoc
see documentation here:
Best regards
Stephan
2 commentaires
Stephan
le 9 Mai 2018
Modifié(e) : Stephan
le 9 Mai 2018
Hi,
when you choose the option "generate code" from the button export model in the classification learner app you get a good commented script with matlab-code doing exactly what you choosed in classification learner app. Then you can modify for your purposes as you want. If you do SVM model with more than 2 classes, i guess the function classification learner will use
fitcecoc
See here for further information:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/188488/image.jpeg)
Best regards
Stephan
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!