Shows error in lung cancer detection using svm

2 views (last 30 days)
'svmtrain' has been removed. With appropriate code changes, use 'fitcsvm' instead.
Error in new (line 87)
svmStruct = svmtrain(xdata, group, 'KernelFunction', 'rbf', 'KernelScale', 3, 'ShowPlot', true);
Caused by:
Unrecognized function or variable 'svmtrain'.
I also used fitcsvm instead ...again it shows error

Answers (1)

Voss
Voss on 30 Mar 2024
Notice how the error message says "With appropriate code changes". Did you read and follow the documentation for fitcsvm, to adapt your code for working with fitcsvm?

Categories

Find more on Biotech and Pharmaceutical in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!