A simple SVM example
Show older comments
Hi everyone Can anyone help me to understand the code of one simple linear SVM with binary classification? How i use LibSVM?
5 Comments
Greg Athanasiadis
on 4 Dec 2016
Walter Roberson
on 4 Dec 2016
Is there a particular reason why you are not using the svm routines for Statistics toolbox?
Greg Athanasiadis
on 4 Dec 2016
Walter Roberson
on 4 Dec 2016
Edited: Walter Roberson
on 4 Dec 2016
libsvm will not help in that case, as libsvm is not written in MATLAB.
Perhaps there is code in the File Exchange
Answers (2)
hendra kurnia febriawan
on 3 Oct 2018
0 votes
Hi all;
I read Hsu et al. (2003) 'A Practical Guide to Support Vector Classification' and they proposed procedures in SVM. One of them is conduct simple scaling on the data before applying SVM. The purpose is to avoid attributes in greater numeric ranges dominating those in smaller numeric ranges. I have a question, do the implementation of SVM in Matlab using fitcsvm and fitcecoc already contain scaling for the dataset (ex:for image classification) or we need to do that before running the fitcecoc function? Thank you in advance.
Categories
Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!