【问题标题】:Change the value of sigma using the fitcsvm function in Matlab使用 Matlab 中的 fitcsvm 函数更改 sigma 的值
【发布时间】:2017-03-06 17:12:44
【问题描述】:

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

我正在使用这个命令:

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

并且想要绘制不同 sigma 值的 SVM 生成边界。您在哪里包含 sigma 值?

感谢您的时间和帮助。

【问题讨论】:

    标签: matlab kernel svm


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-09-18
      • 2019-08-27
      • 2018-12-15
      • 2015-05-24
      • 2017-11-05
      • 2011-04-10
      • 1970-01-01
      • 2023-04-10
      相关资源
      最近更新 更多