フィルターのクリア

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

4 ビュー (過去 30 日間)
Hassan Ashraf
Hassan Ashraf 2019 年 8 月 29 日
回答済み: Don Mathis 2019 年 9 月 3 日
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 件のコメント
Walter Roberson
Walter Roberson 2019 年 8 月 29 日
Which MATLAB version are you using?
Hassan Ashraf
Hassan Ashraf 2019 年 8 月 29 日
2018b

サインインしてコメントする。

採用された回答

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 件)

カテゴリ

Help Center および File ExchangeClassification についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by