简体   繁体   English

如何在 Matlab 中设置 C 和 SVM 的伽玛值

[英]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.我尝试使用 RBF kernel 训练一个预先设计的 SVM。我想在训练前修复 C 和伽玛值。 I use我用

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

But after training, the C(BoxConstraint) and gamma(KernelScale) are changed.但是在训练之后,C(BoxConstraint) 和 gamma(KernelScale) 发生了变化。 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 1 2

Set 'OptimizeHyperparameters' as 'none' instead of 'auto'将“OptimizeHyperparameters”设置为“none”而不是“auto”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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