在Matlab中使用fitcsvm函数改变sigma的值

Change the value of sigma using the fitcsvm function in Matlab

我想知道如何在 Matlab 中使用 fitcsvm 改变 sigma 的值。

我正在使用这个命令:

cl3 = fitcsvm(X,Y,'KernelFunction','rbf', 'Standardize',true,'BoxConstraint',2,'ClassNames',[-1,1]);

并想绘制 SVM 为不同的 sigma 值生成的边界。你在哪里包括西格玛值?

感谢您的宝贵时间和帮助。

使用KernelScale参数设置g,f.e.:

cl3 = fitcsvm(X, Y, 'KernelFunction', 'rbf', 'KernelScale', 0.1, ...
             'Standardize', true, 'BoxConstraint', 2, 'ClassNames', [-1,1]);