What is The default kernel in fitcsvm(X,Y) function?

조회 수: 7 (최근 30일)
Ragda2
Ragda2 2021년 2월 16일
답변: Abhishek Gupta 2021년 2월 19일
hello everyone,
i read matlab documentation of fitcsvm but i coundn't find what is the defualt value of the kernal function if i used fitcsvm(X,Y)
best regards,

답변 (1개)

Abhishek Gupta
Abhishek Gupta 2021년 2월 19일
Hi,
As per my understanding, you want to know the default value of 'KernelFunction' in the 'fitcsvm()' function. It's as follows:-
  1. Gaussian or Radial Basis Function (RBF) kernel, the default for one-class learning
  2. Linear kernel, the default for two-class learning
The above information is also present in the documentation. See the table under 'KernelFunction' in 'SVM Options' section.
You can also access the 'KernelFunction' value of your model as follows: -
SVMModel = fitcsvm(x,y);
SVMModel.KernelParameters.Function

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by