1

I am using SVM in Matlab for classification. I directly gave the training data set and class labels for training but without any parameters. My code looks like this:

traningData = myData;
label = [1 1 0 0 0 0 0 0 1 1 1 1 0 1 1 0 1 1 1 0];
SVMStructure = svmtrain (myData, label);
... %further prediction part

I found the default SVM method is 'linear', so here in my code, it should be 'linear' then. But how about the parameter C? It says from the Matlab documentation:

The resulting structure, SVMstruct, contains the optimized parameters from the SVM algorithm, enabling you to classify new data

So does that mean Matlab automatically optimizes the paramter C for linear SVM here?

1 Answer 1

0

Those built in routines are pretty awful. They allow no flexibility and use dinosaur solvers. It is quite unclear what is going on behind the scenes.

I strongly recommend using another library for SVM training. Many popular packages are free and have MATLAB interfaces.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.