Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Number of hidden layers in a neural network model

Would someone be able to explain to me or point me to some resources of why (or situations where) more than one hidden layer would be necessary or useful in a neural network?

like image 673
Louis Avatar asked Feb 04 '23 07:02

Louis


1 Answers

Basically more layers allow more functions to be represented. The standard book for AI courses, "Artificial Intelligence, A Modern Approach" by Russell and Norvig, goes into some detail of why multiple layers matter in Chapter 20.

One important point is that with a sufficiently large single hidden layer, you can represent every continuous function, but you will need at least 2 layers to be able to represent every discontinuous function.

In practice, though, a single layer is enough at least 99% of the time.

like image 170
Max Shawabkeh Avatar answered Feb 05 '23 21:02

Max Shawabkeh