Borrar filtros
Borrar filtros

How to customize SVM kernel parameters in Matlab

5 visualizaciones (últimos 30 días)
Ikra89
Ikra89 el 9 de Jun. de 2013
Comentada: behruz el 5 de Jul. de 2015
Hi
I want to ask about how to customize SVM kernel parameters in Matlab.
For ex: I have linear kernel, polynomial kernel, and RBF kernel with:
C = 0.2;
gamma = 0.8;
r = 0.05;
d = 3;
My question is how do I customize it using svmstruct.
1. linear: ??
2. polynomial: ??
3. RBF:
svmstruct = svmtrain(data, groups, 'Kernel_Function', 'rbf', 'RBF_Sigma', 0.2, 'BoxConstraint', 0.8);
CMIIW about how to customize RBF kernel.
I'd really appreciate if anybody could help my research. Thanks.
Regards
Ikra

Respuestas (2)

Ikra89
Ikra89 el 10 de Jun. de 2013
anybody can help? :)

Ahmed
Ahmed el 10 de Jun. de 2013
Documentation given by
help svmtrain
should give you all information you need. What is the meaning of your variable r?
1. the linear kernel has only parameter C
svmstruct = svmtrain(data, groups, 'Kernel_Function', 'linear', 'BoxConstraint', 0.2);
2. polynomial has parameters C and polyorder
svmstruct = svmtrain(data, groups, 'Kernel_Function', 'polynomial', 'polyorder',3,'BoxConstraint', 0.2);
3. RBF
you might have mixed up the constants C and gamma in your code
  6 comentarios
behruz
behruz el 4 de Jul. de 2015
hi the combination of C and gamma how is implemented? in fitcsvnm or svmtrain we dont have any gamma factor how is the impact of it apllied to svm?
behruz
behruz el 5 de Jul. de 2015
any comment?

Iniciar sesión para comentar.

Categorías

Más información sobre Data Import and Analysis en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by