Every neural network has a secret layer along with input and output layers. Neural networks that use one secret layer are called shallow neural networks, while those that use various hidden layers are called deep neural networks. Both shallow and deep networks are efficient in fitting into any function, but shallow networks need a lot of parameters, unlike deep networks that can fit functions even with a few parameters because of several layers. Deep networks are favored today over shallow networks because, at every layer, the model learns a story and abstract representation of the input. Also, they are much more capable regarding the number of parameters and calculations compared to shallow networks.

BY Best Interview Question ON 12 May 2023