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

8 visualizaciones (últimos 30 días)
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];

Respuestas (1)

KSSV
KSSV el 8 de Ag. de 2021
Editada: KSSV el 8 de Ag. de 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.

Categorías

Más información sobre Deep Learning Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by