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

4 vues (au cours des 30 derniers jours)
Hassan Ashraf
Hassan Ashraf le 29 Août 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?
  2 commentaires
Walter Roberson
Walter Roberson le 29 Août 2019
Which MATLAB version are you using?
Hassan Ashraf
Hassan Ashraf le 29 Août 2019
2018b

Connectez-vous pour commenter.

Réponse acceptée

Don Mathis
Don Mathis le 3 Sep 2019
Type
help fitcsvm
and I think you will see that the argument is spelled
'KernelFunction'
not
'kernel_function'
.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by