Getting Error, "kernel function is not a valid parameter name".
7 次查看(过去 30 天)
显示 更早的评论
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?
2 个评论
采纳的回答
Don Mathis
2019-9-3
Type
help fitcsvm
and I think you will see that the argument is spelled
'KernelFunction'
not
'kernel_function'
.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Classification 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!