MATLAB Answers


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

Asked by Hassan Ashraf on 29 Aug 2019
Latest activity Answered by Don Mathis on 3 Sep 2019
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?


Which MATLAB version are you using?

Sign in to comment.

1 Answer

Don Mathis 님의 답변 3 Sep 2019
 채택된 답변

help fitcsvm
and I think you will see that the argument is spelled


Sign in to comment.