Conversion to cell from ClassificationSVM is not possible
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Manuel Reis Carneiro
el 8 de Jul. de 2020
Respondida: Star Strider
el 8 de Jul. de 2020
How to correct this error?
the code:
SVMModels=cell(5,1);
Y=GroupTrain;
classes=unique(Y);
rng(1);
for j=1:numel(classes)
indx=strcmp(Y',classes(j));%%Create binary classes for each classifier
SVMModels(j)=fitcsvm(DF,indx,'ClassNames',[false true],'Standardize',true,... %%ERROR!!!
'KernelFunction','rbf','BoxConstraint',1);
end
0 comentarios
Respuesta aceptada
Star Strider
el 8 de Jul. de 2020
I cannot fun your code, however running something similar suggests to me that using curly braces {} to subscript ‘SVMModels’ could work:
SVMModels{j} = fitcsvm(DF,indx ...
.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Get Started with MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!