What is the difference between fitcsvm and svmtrain?

6 views (last 30 days)
Roman
Roman on 2 Dec 2014
Answered: TED MOSBY on 22 Nov 2024 at 9:51
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?

Answers (1)

TED MOSBY
TED MOSBY on 22 Nov 2024 at 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:
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!

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!