Statistics for Data Science
by James C. Mott, Rajprasath Subramanian, Shaikh Salamatullah, James D. Miller, Vijayakumar Ramdoss
Model parameters
There is no best practice or recommended rule or policy that will tell the data scientist how many layers and/or nodes to use (although there are several more or less industry--accepted rules) in an artificial neural network model.
Customarily, if at all necessary, one hidden layer is enough for most or, a vast number of, artificial neural network statistical applications (although you may have observed that we showed three hidden layers in our graphical image at the beginning of this chapter).
As far as the number of nodes, the number should frequently be between the input layer size and the output layer size, usually 2/3 of the input size.
Bottom line—when the data scientist is determining the number of layers and nodes ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access