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

9 visualizzazioni (ultimi 30 giorni)
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];

Risposte (1)

KSSV
KSSV il 8 Ago 2021
Modificato: KSSV il 8 Ago 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.

Categorie

Scopri di più su Deep Learning Toolbox in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by