How many neurons for a neural network?

Let’s see how to find the optimal number of neurons of a neural network

Gianluca Malato
Towards Data Science
5 min readMay 10, 2021

--

Image by author

Neural networks are a fascinating field of machine learning, but they are sometimes difficult to optimize and explain. In fact, they have several hyperparameters. The most common hyperparameter to tune is the number of neurons in the hidden layer. Let’s see how to find the best…

--

--

Theoretical Physicists, Data Scientist and fiction author. I teach Data Science, statistics and SQL on YourDataTeacher.com. E-mail: gianluca@gianlucamalato.it