Effacer les filtres
Effacer les filtres

Is it possible to have control on C parameter of SVM in Matlab ?

5 vues (au cours des 30 derniers jours)
n
n le 15 Fév 2011
Hi,
I have seen the following question and answer:
http://mathforum.org/kb/message.jspa?messageID=3735688&tstart=0
but it seems to be too complicated! are there any other ways perhaps in newer versions of bioinoformatic toolbox to have control on C parameter of SVM? or somehow have control on how SVM parameters are being optimized?
Thanks

Réponses (1)

n
n le 17 Fév 2011
Here is an example of using 'QuadProg_Opts' option in svmtrain:
myoption = optimset('PrecondBandWidth',2);
% this is the ub parameter of quadprog I guess
svmStruct =svmtrain(train_data,train_label,'Kernel_Function','rbf','RBF_Sigma', 0.5,'QuadProg_Opts', myoptions);
But the C value seem to be relative to box constrain as used in the example of svmtrain:
svmStruct = svmtrain(data(train,:),groups(train),...
'showplot',true,'boxconstraint',1e6);

Catégories

En savoir plus sur Get Started with MATLAB 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!

Translated by