change the rbf in SVM

36 views (last 30 days)
monkey_matlab
monkey_matlab on 23 Oct 2016
Edited: Walter Roberson on 9 Oct 2018
Hello,
I am using the command
cl = fitcsvm(X,Y,'KernelFunction','rbf',...
'BoxConstraint',Inf,'ClassNames',[-1,1]);
in my program. How do I go about changing the 'rbf'?

Accepted Answer

Walter Roberson
Walter Roberson on 23 Oct 2016
  5 Comments
Walter Roberson
Walter Roberson on 24 Oct 2016
Create your own RBF routine that has a sigma built in to it.
Or possibly the KernelScaling might be what is needed, but the documentation for how that all worked is long and it was not clear to me how the various aspects work together.

Sign in to comment.

More Answers (1)

Jhon Pilataxi
Jhon Pilataxi on 9 Oct 2018
Edited: Walter Roberson on 9 Oct 2018

Categories

Find more on Data Type Conversion in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!