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

11 Ansichten (letzte 30 Tage)
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];

Antworten (1)

KSSV
KSSV am 8 Aug. 2021
Bearbeitet: KSSV am 8 Aug. 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.

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by