Different behavior of 'activations' function of Neural Network Toolbox between 2017b and 2018a.
Afficher commentaires plus anciens
If I tried CNN sample code obtained here, I got error on 2018a and not on 2017a. Is it a bug or expected behavior? How can I fixed it on 2018a?
- Obtained sample code here.https://jp.mathworks.com/matlabcentral/fileexchange/57280-cnn---transfer-learning-example
- Run classifyFlowers.m
- Hit following error
Error: classifyFlowers (line 39)
classifier = fitcsvm(trainingFeatures, trainingSet.Labels);
Findings:
I found that the size of matrix of returned value from 'activations' function was different.
trainingFeatures = activations(convnet, trainingSet, featureLayer, 'MiniBatchSize', 1);
2017b (Expected):
>> size(trainingFeatures)
ans =
112 4096
2018a (Not Expected):
>> size(trainingFeatures)
ans =
1 1 4096 112
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Get Started with Statistics and Machine Learning Toolbox dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!