how to include four hidden layers by taking away LSTM.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
jaah navi
le 20 Juin 2021
Commenté : jaah navi
le 28 Juin 2021
I am having a code that implements LSTM layer as below:
inputSize = 12;
numHiddenUnits1 = 48;
numHiddenUnits2 = 48;
numHiddenUnits3 = 48;
numHiddenUnits4 = 48;
numClasses = 12;
layers = [ ...
sequenceInputLayer(inputSize)
lstmLayer(numHiddenUnits1,'OutputMode','sequence')
lstmLayer(numHiddenUnits2,'OutputMode','sequence')
lstmLayer(numHiddenUnits3,'OutputMode','sequence')
lstmLayer(numHiddenUnits4,'OutputMode','sequence')
fullyConnectedLayer(numClasses)
reluLayer
regressionLayer]
Now I want to implement four hidden layers without LSTM. So anyone can help me how to modify it.
0 commentaires
Réponse acceptée
Aparajith Raghuvir
le 21 Juin 2021
I understand you would like to add 4 fully connected hidden layers without LSTM.
The same fullyConnectedLayer() function can be used with your choice of hyperparemeters to achieve your aim. Please refer to this for the documentation of the abovementioned function.
I hope this helps.
4 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Image Data Workflows dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!