MATLAB-如何在templateSVM中设置sigma [英] MATLAB - How to set sigma in templateSVM

查看:617
本文介绍了MATLAB-如何在templateSVM中设置sigma的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有多个标记矢量的数据集,我想用带有RBF内核并在MATLAB中称为'templateSVM'的集成函数来执行多类SVM.

I have a dataset with multiple labeled vectors and I wanted to perform a multi-class SVM with RBF Kernel with the integrated function in MATLAB called 'templateSVM'.

为此,我通过以下命令使用templateSVM函数:

To do so, I use the templateSVM function with the following command:

t = templateSVM('BoxConstraint', 1, 'KernelFunction', 'rbf')

问题是我找不到如何设置'sigma'参数.

The problem is that I cannot find how to set the 'sigma' parameter.

由于先前的计算,我知道C=1sigma=8是获得最佳结果的最佳参数.不知道如何设置西格玛会导致可怕的结果.

Thanks to previous computations, I know that C=1 and sigma=8 are the best parameters to get the best results. Not knowing how to set sigma leads me to awful results.

您知道如何设置此参数吗?

Would you know how to set this parameter?

非常感谢.

推荐答案

我知道这是一个老问题,但是答案对新用户很有用. 下面的链接可以回答这个问题: https://www.mathworks.com/matlabcentral/answer/336748-support-vector-machine-parameters-matlab

I know it's an old question, but the answer would be useful for new users. Link below can answer the question: https://www.mathworks.com/matlabcentral/answers/336748-support-vector-machine-parameters-matlab

设置SIGMA":使用"KernelScale"名称/值对.

"setting SIGMA": Use the 'KernelScale' name-value pair.

这篇关于MATLAB-如何在templateSVM中设置sigma的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆