MATLAB Answers

What "Kernel Scale" in svm really is?

206 ビュー (過去 30 日間)
Zeynab Mousavikhamene
Zeynab Mousavikhamene 2020 年 4 月 9 日
コメント済み: PR 2020 年 12 月 2 日
I checked several places in matlab tutorial but did not find explicit definition of "kernel scale". According to question like this or this or this that they are constants of kernels. Based on the definition of kernel from matlab it should be sigma which is "the width of kernel". So kernel scake is ONLY applied to RBF not to linear or polynomial. Am I right?
And what is the default value of kernel scale? According to this question the default value for kernel scale is 1. But according to here, it uses heuristic to determine the kernel scale.
I would appreciate your thoughts.

回答 (1 件)

Hiro 2020 年 4 月 21 日
This gives you a clearer view for you:
Let me answer you questions.
  • Kernel scale is just for RBF kernel? Yes, you're right. This is a hyper parameter.
  • use 'KernelScale' to apply a kernel scale of your choice. The option 'auto' evokes the heuristic method.
  • according to the documentation, the default value for the kernel scale is 1.
It does not elaborate on the heuristic method but I bet it will use a method like cross validation.
I would optimize the parameter via hyper parameter tuning, e.g., bayes optimization.
  3 件のコメント
PR 2020 年 12 月 2 日
Hi Hiro. Thanks for the elaboration.
Can i get some information on the algorithm that Matlab uses to determine 'auto' kernel scale in SVM classification.


Community Treasure Hunt

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

Start Hunting!

Translated by