简体   繁体   中英

How could I set C and gamma value for SVM in Matlab

I trt to train a pre-designed SVM with RBF kernel. I want to fix the C and gamma value before train. I use

Mdl = fitcsvm(Xapp,Yapp,'KernelFunction','rbf','KernelScale', 1,'BoxConstraint', 1,...);

But after training, the C(BoxConstraint) and gamma(KernelScale) are changed. How could I fix them?

There are two links show how could they change the parameters. But I don't know if they could fix them until train finished. 1 2

Set 'OptimizeHyperparameters' as 'none' instead of 'auto'

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