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

9 ビュー (過去 30 日間)
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];

回答 (1 件)

KSSV
KSSV 2021 年 8 月 8 日
編集済み: KSSV 2021 年 8 月 8 日
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.

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by