What is the difference between fitcsvm and svmtrain?

조회 수: 6 (최근 30일)
Roman
Roman 2014년 12월 2일
답변: TED MOSBY 2024년 11월 22일 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?

답변 (1개)

TED MOSBY
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:
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!

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by