classificationSVM and fitcsvm error for SVM model

4 ビュー (過去 30 日間)
chaitanya merugu
chaitanya merugu 2019 年 3 月 29 日
コメント済み: Yusuf Suer Erdem 2020 年 10 月 6 日
I am getting this error while trying to train SVM model
Error using ClassificationSVM (line 249)
Use fitcsvm to train an SVM model.
Error in multisvm (line 29)
classes = ClassificationSVM(svmStruct,tst);
Error in DetectDisease_GUI>pushbutton6_Callback (line 326)
result = multisvm(Train_Feat,Train_Label,test);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in DetectDisease_GUI (line 41)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DetectDisease_GUI('pushbutton6_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
Can anyone help me to resolve this errors!

回答 (2 件)

Walter Roberson
Walter Roberson 2019 年 3 月 29 日

Abhirami Manikandan
Abhirami Manikandan 2020 年 6 月 17 日
Machine Learning
Functionality Being Removed or Changed
classregtree has been removed
svmtrain and svmclassify have been removed
The svmtrain and svmclassify functions have been removed. Use the fitcsvm function and the predict function of ClassificationSVM instead.To update your code, replace all instances of svmtrain with fitcsvm, and replace all instances of svmclassify with predict. For more details, see the Compatibility Considerations sections of svmtrain and svmclassify
  4 件のコメント
Warid Islam
Warid Islam 2020 年 6 月 19 日
Hi Walter,
It worked perfectly now. Thanks a lot.
Yusuf Suer Erdem
Yusuf Suer Erdem 2020 年 10 月 6 日
Thanks Walter, you helped a lot.
Thanks Warid as well.

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

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by