Matlab tool for CNN-SVM implementation
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Dear
I am using Matlab in a deep learning project. It has extensive support for implementing CNN and LSTM. My query is does Matlab support combination of CNN and a linear classifier in a model?
I want to mean that, using a trainNetwork function either supports lstm implementtion or CNN implementation based on the defintioin we created in layers and options field. But if I want to apply a linear classifier after the fully conneted layer, will Matlab support such type of modification through its deep learning toolbox?
Any kind of advice in this regard on how to infuse svm with cnn will be highly regarded.
thanks,
2 comentarios
H W
el 3 de Nov. de 2022
Editada: KSSV
el 3 de Nov. de 2022
you can divide the system into two process
the first is cnn to obtain the features
the second is SVN to linear classifier
the connect features is
% Extract features from 'fc' layer form cnn.
layer = 'fc';
featuresTrain = activations(net,Traindata,layer,'OutputAs','rows');
% Train SVM classififer with those features.
YTrain = Train.Labels;
classifier = fitcecoc(featuresTrain,YTrain);
best wishes!
Hiro Yoshino
el 3 de Nov. de 2022
Editada: Hiro Yoshino
el 3 de Nov. de 2022
There is a good example that shows the whole workflow using a CNN based feature extractor combined with a SVM based classifier.
https://www.mathworks.com/help/deeplearning/ref/seriesnetwork.activations.html (see the section: Feature Extraction Using SqueezeNet)
Respuestas (0)
Ver también
Categorías
Más información sobre Deep Learning Toolbox 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!