How to change the number of nodes in hidden layer?

4 visualizzazioni (ultimi 30 giorni)
when constructing a neural network, how to change the number of nodes in each hidden layer. To be specific how to increase or to decrease the nodes in each hidden layer?

Risposte (1)

Yukta Maurya
Yukta Maurya il 24 Mag 2022
Assunmig that you might be working with LSTM, you can refer the below documentations -
  1. The "numHiddenUnits" represent the nodes in hidden layer, you can assign any value to it depending on your network. https://www.mathworks.com/help/deeplearning/ref/nnet.cnn.layer.lstmlayer.html?searchHighlight=hidden%20layer&s_tid=srchtitle_hidden%20layer_1

Community Treasure Hunt

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

Start Hunting!

Translated by