如何选取适当的隐藏层神经元个数(重要)

隐藏层指的是dense layer

The Number of Neurons in the Hidden Layers
There are many rule-of-thumb methods for determining an acceptable number of neurons to use in the hidden layers, such as the following:

The number of hidden neurons should be between the size of the input layer and the size of the output layer.
The number of hidden neurons should be 2/3 the size of the input layer, plus the size of the output layer.
The number of hidden neurons should be less than twice the size of the input layer. These three rules provide a starting point for you to consider the number of neurons. There is also some research about this topic: https://www.hindawi.com/journals/mpe/2013/425740/


版权声明:本文为weixin_44684139原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。