The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

How do we decide number of hidden layers for a particular problem

How do we decide number of hidden layers for a particular problem

0
Votes
1
Answer
1 Answer

365 Team
0
Votes

Hi Sai,
Well, there is no set rule. 
Good guidelines about the number of hidden layers that are required is the complexity of the data and the patterns. If you have 2 features, more than 2 hidden layers would rarely be useful – the point being that there are not many different ways in which the features can interact. 
However, with 10 features, the combinations and interactions between them becomes more pronounced. With 100 – even more so (in fact, exponentially so). In the same way, the number of observations is also very important!
Therefore, the more information / patterns / interactions between variables there are, the deeper (and wider) the net you can build. 
Please note that in the MNIST and the Business case that we use, we don’t have enough data to achieve significantly better results after the 2nd hidden layer. 
Best,
Iliya