Could anyone help me how to find the number of input layer nodes and output layer nodes for the code mentioned as below.

11 vues (au cours des 30 derniers jours)
Could anyone help me how to find the number of input layer nodes and output layer nodes for the code mentioned as below.
numFeatures = 12;
numHiddenUnits1 = 125;
numHiddenUnits2 = 100;
numClasses = 9;
layers = [ ...
sequenceInputLayer(numFeatures)
lstmLayer(numHiddenUnits1,'OutputMode','sequence')
dropoutLayer(0.2)
lstmLayer(numHiddenUnits2,'OutputMode','sequence')
dropoutLayer(0.2)
fullyConnectedLayer(numClasses)
softmaxLayer
classificationLayer];

Réponses (1)

KSSV
KSSV le 8 Août 2021
Modifié(e) : KSSV le 8 Août 2021
You have the code...you should know it. Straight away getting into the problem without studying any basics is not advisable. I told this to you multiple times.
Read about deepNetworkDesigner. This is a gui, you import the defined layer into the GUI, you will get your required information.
By the way what do you mean by input layer nodes and output layer nodes? It should be dimensions/ features of input and output. It is already said in the code the number of features are 12 and number of classes are 9. So what you have code for is a classification problem. You will give a input of size 1*12 and your arcitecture classifies it into any one of the nine classes it falls in.

Catégories

En savoir plus sur Deep Learning Toolbox 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!

Translated by