【问题标题】:What's the difference between the svmtrain and fitcsvm in matlab?matlab中的svmtrain和fitcsvm有什么区别?
【发布时间】:2015-05-24 19:19:54
【问题描述】:

我知道fitcsvm 是matlab 新版本中的一个新命令,并且在最新文档中说svmtrain 将被删除。这两个命令是一样的吗?实际上,我注意到它们在我最近的工作中的结果是不同的。谁能帮我解决这个奇怪的问题?

【问题讨论】:

    标签: matlab svm


    【解决方案1】:

    根据我的实验,我发现这两个功能是不同的。 fitcsvm 考虑了经验分布,分布与默认情况下正样本和负样本的数量有关。但是,svmtrain 只是把这个分布当作 [0.5 0.5],可以认为没有先验知识。 此外,可能与数据是否已标准化有关,要了解更多信息,请查找有关SVM的相关文档。

    【讨论】:

      【解决方案2】:

      来自fitcsvm

      fitcsvm and svmtrain use, among other algorithms, SMO for optimization. The software implements SMO differently between the two functions, but numerical studies show that there is sensible agreement in the results.

      来自维基百科Sequential minimal optimization:

      SMO is an iterative algorithm for solving the optimization problem ...

      【讨论】:

        猜你喜欢
        • 2015-09-28
        • 1970-01-01
        • 2013-03-26
        • 2012-12-20
        • 2016-02-20
        • 2012-01-14
        • 2015-02-20
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多