Error using classreg.learning.FullClassificationRegressionModel.prepareDataCR (line 213) X must be a numeric matrix.
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Melvyn Smith
el 31 de Oct. de 2019
Respondida: Chirdpong Deelertpaiboon
el 12 de Abr. de 2022
Why do I get this error when running the "Deep Learning Example: Feature Extraction using AlexNet and CIFAR-10 Dataset"?
"Error using classreg.learning.FullClassificationRegressionModel.prepareDataCR (line 213) X must be a numeric matrix."
4 comentarios
Guillaume
el 1 de Nov. de 2019
I don't have the toolbox so can't test the example.
The obvious question is what is X then? Set matlab to break into the debugger when it encounters an error with:
dbstop if error
run the example the code and when it breaks into the debugger, look at the class and content of X.
Adam Danz
el 1 de Nov. de 2019
I googled the demo you mentioned because no link was provided. It led to a file exchange by Math Works and someone else has recently left a comment on that page with the same error. Actually, there are quite a few errors listed in the comments.
I'm unfamiliar with the toolbox and we don't have much info here. If the demo is just meant to be run without any user inputs then the error may be due to an incompatible matlab release/version.
Respuestas (2)
Chirdpong Deelertpaiboon
el 12 de Abr. de 2022
I hope this is not too late for your question. I just found the answer from this post
This works for me. There are two lines from the example code that need to correct. The first one is
trainingFeatures = activations(convnet, trainingSet, featureLayer,'OutputAs','rows');
The second one is
testFeatures = activations(convnet, testSet, featureLayer,'OutputAs','rows');
0 comentarios
Ver también
Categorías
Más información sobre Image Data Workflows 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!