What is the difference between fitcsvm and svmtrain?
5 次查看(过去 30 天)
显示 更早的评论
These two functions aim to do the same thing, but have different options... What is the difference? Why does matlab include both?
Also how does the 'rbf_sigma' paramter of svmtrain compare with the scale paramter of fitcsvm?
0 个评论
回答(1 个)
TED MOSBY
2024-11-22,9:51
Hi,
Please note that the ‘svmtrain’ function was used in order versions on MATLAB and was removed in R2019b, the function ‘fitcsvm’ is now used place of ‘svmtrain’.
Refer to this MATLAB answer here:
To learn more about ‘fitcsvm’ refer to its MATLAB documentation here:
To know more about the ‘KernelScale’ parameter refer this link:
www.mathworks.com/help/stats/fitcsvm.html?searchHighlight=fitcsvm&s_tid=srchtitle_support_results_1_fitcsvm#bt9w6j6_sep_shared-KernelScale[UN3] [UN4] [KS5]
MATLAB used to include both functions for backward compatibility. Users who had existing codebases could use ‘svmtrain’ and could continue to use their code without modification. However, for new projects and to take advantage of improved functionality and performance, ‘fitcsvm’ is the recommended choice.
Hope it helps!
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!