Getting Error, "kernel function is not a valid parameter name".

I am trying to train a SVM Classifier but getting qn error in this line.
svmStruct = fitcsvm(trSets,trGroup, 'HyperparameterOptimizationOptions',struct('showplot',true),'kernel_function', 'linear','KernelScale',1);
Can anyone point out, what is wrong with this line of code?

 채택된 답변

Don Mathis
Don Mathis 2019년 9월 3일
Type
help fitcsvm
and I think you will see that the argument is spelled
'KernelFunction'
not
'kernel_function'
.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

질문:

2019년 8월 29일

답변:

2019년 9월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by