![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/173134/image.png)
Gaussian kernel scale for RBF SVM
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
vince65201
am 8 Mär. 2017
Kommentiert: Walter Roberson
am 1 Jun. 2019
Hi All, I'm using RBF SVM from the classification learner app (statistics and machine learning toolbox 10.2), and I'm wondering if anyone knows how Matlab came up with the idea that the kernel scale is proportional to the sqrt(P) where P is the number of predictors. Additionally, it says "The software divides all elements of the predictor matrix X by the value of KernelScale", does this mean the kernel scale is simply 1/sigma^2? source: https://www.mathworks.com/help/stats/templatesvm.html#input_argument_namevalue_KernelScale. Thanks!
0 Kommentare
Akzeptierte Antwort
Akira Agata
am 9 Mär. 2017
Assuming the RBF kernel function with scaling parameter (gamma) as follows:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/173134/image.png)
Then, the SVM model should be set using "KernelScale" like this.
mdlSVM = fitcsvm(..., 'KernelScale', 1/sqrt(gamma));
7 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Classification finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!