Clear Filters
Clear Filters

How to change the number of nodes in hidden layer?

5 views (last 30 days)
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?

Answers (1)

Yukta Maurya
Yukta Maurya on 24 May 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!