how can I replace the softmax layer with another classifier as svm in convolution network
Ältere Kommentare anzeigen
I made deep learning application that using softmax
layers = [ imageInputLayer(varSize); conv1; reluLayer;
convolution2dLayer(5,32,'Padding',2,'BiasLearnRateFactor',2);
reluLayer()
maxPooling2dLayer(4,'Stride',2);
convolution2dLayer(5,32,'Padding',2,'BiasLearnRateFactor',2);
reluLayer()
maxPooling2dLayer(2,'Stride',2);
convolution2dLayer(5,64,'Padding',2,'BiasLearnRateFactor',2);
reluLayer();
maxPooling2dLayer(4,'Stride',2)
fc1;
reluLayer();
fc2;
reluLayer();
%returns a softmax layer for classification problems. The softmax layer uses the softmax activation function.
softmaxLayer()
classificationLayer()];
I want to use SVM and random forest classifiers instead of softmax. and use a deep learning for feature extraction. I hope I can get a link for a tutorial.
1 Kommentar
mona benhari
am 28 Feb. 2021
I have the same problemI have you got the answer?
Antworten (4)
Johannes Bergstrom
am 17 Apr. 2018
1 Stimme
Here is an example: https://www.mathworks.com/help/nnet/examples/feature-extraction-using-alexnet.html
1 Kommentar
Suheer Ali
am 17 Apr. 2018
Nagwa megahed
am 21 Apr. 2022
1 Stimme
the only possible solution is to save the extracted features by the deep model , then use this features as an input to the SVM or any other wanted classifier.
1 Kommentar
amel yasser
am 24 Mai 2022
or he can freeze the result and add SVM classifier
Saifullah Razali
am 19 Feb. 2019
0 Stimmen
hello.. just wondering.. have u got the answer yet? i have the same exact problem
Mahzad Pirghayesh
am 28 Jan. 2021
0 Stimmen
I have the same problem too,can any body help us
Kategorien
Mehr zu Deep 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!