Train Linear SVM Model
Ältere Kommentare anzeigen
I have a dataset with 50 predictor variables and two class labels (disease/normal). When I run this code, I get the error message below. Any ideas on how to correct this error?
[Mdl,FitInfo] = fitclinear(values(:,1:50),classes)
Error using classreg.learning.Linear.prepareDataCR (line 140) X must be a numeric matrix.
Antworten (1)
Akira Agata
am 16 Feb. 2017
0 Stimmen
The predictors "values(:,1:50)" should be numeric matrix.
I would like to recommend checking it again.
Kategorien
Mehr zu Statistics and Machine Learning Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!