简体   繁体   中英

Setting gamma value for RBF kernel in templateSVM

According to this document (and several others), the RBF kernel is defined by the equation below, and can be adjusted by varying the parameters C and gamma. 在此处输入图片说明

The documentation for svmTemplate defines the RBF kernel without a gamma value as shown below.

在此处输入图片说明

Why does svmTemplate not use gamma? Is there a way of specifying it?

I'm guessing it is because it is essentially rolled into the "KernelScale" option in the documentation. It indicates that it divides all the values in the data by a constant, which allows you to essentially set the gamma parameter that way. You can see that ||x z-y z|| = ||xy||*z, and so obtains the equivalent impact (so long as you select the KernelScale value appropriately). The documentation says the scale is selected heuristically by default, and there do exist heuristics for the RBF kerne's parameters.

It's not the way I would have coded such a system, but it should work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM