change the rbf in SVM

7 views (last 30 days)
monkey_matlab
monkey_matlab on 23 Oct 2016
Commented: Hassan Raza on 15 Nov 2023
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
  6 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.
Hassan Raza
Hassan Raza on 15 Nov 2023
How to make the code implementation Multiquadric RBF on 1d heat equation.

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 Statistics and Machine Learning Toolbox 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!