How can I find the optimize value of 'C' or ' Boxconstraint' for linear SVM ?

1 view (last 30 days)
I work with linear svm. but it not gives better output as I required.But when I change BoxConstraint it gives good output. now i want to do something so that i can find optimize value for "Boxconstraint".
tem = templateSVM('kernelFunction','linear','Solver','SMO','BoxConstraint', 16);
classifier = fitcecoc(trainingFeatures,trainingLabels,'Learners',tem);

Answers (0)

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!