How to design LSTM-CNN on deep network designer?
23 ビュー (過去 30 日間)
古いコメントを表示
Hello,
My project is on classification of ECG/EEG signals using deep learning. I have design based on sequence on LSTM layer. Now i want to design hybrid LSTM-CNN on deep network designer which i have problem with connection between LSTM and Convolutional layer. I used Sequencefolding layer (suggested by deep network designer) after LSTM and connect to Convolutionallayer2d. The problem is Sequencefolding layer have two output (1. output, 2. minibatchsize) , which i don't now where to connect this minibatchsize connection. Can somebody expert give me advice on this? Really appreciate on any advice.
Thanks in advance sir.
0 件のコメント
採用された回答
Divya Gaddipati
2021 年 3 月 10 日
You have to use a sequenceUnfoldingLayer that takes two inputs, feature map and the miniBatchSize from the corresponding sequenceLayer. You can refer to this example for more information.
その他の回答 (2 件)
Dreaman
2021 年 3 月 28 日
i have the same problem too, have u solved this problem?
2 件のコメント
Manoj Devaraju
2022 年 6 月 9 日
Hello Ali,
Evn I would like to apply CNN-LSTM network for the image data set classification problem. But unfortunately i am struggling to apply, can you please give me some insight, how can it be done?
H W
2022 年 11 月 5 日
% Load data
[XTrain,YTrain] = japaneseVowelsTrainData;
% Define layers
layers = [ sequenceInputLayer(12,'Normalization','none', 'MinLength', 9);
convolution1dLayer(3, 16)
batchNormalizationLayer()
reluLayer()
maxPooling1dLayer(2)
convolution1dLayer(5, 32)
batchNormalizationLayer()
reluLayer()
averagePooling1dLayer(2)
lstmLayer(100, 'OutputMode', 'last')
fullyConnectedLayer(9)
softmaxLayer()
classificationLayer()];
options = trainingOptions('adam', ...
'MaxEpochs',10, ...
'MiniBatchSize',27, ...
'SequenceLength','longest');
% Train network
net = trainNetwork(XTrain,YTrain,layers,options);
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Get Started with Deep Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!