How to change the number of nodes in hidden layer?

7 次查看(过去 30 天)
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?

回答(1 个)

Yukta Maurya
Yukta Maurya 2022-5-24
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

类别

Help CenterFile Exchange 中查找有关 Deep Learning Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by