Say me please, when should I choose to add more layers and when more neurons in existing layer?
As I undersand it was explained in this video, but it is still unclear for me
Say me please, when should I choose to add more layers and when more neurons in existing layer?
As I undersand it was explained in this video, but it is still unclear for me
Hello, there!
As I said in the other thread to your follow up query,
"If your model learns upon a less complex dataset, that would always be great.
Practically, a less complex dataset has a fewer dimension/features and thus, 1/2 hidden layers would be sufficient enough. But larger dimensions/features count upon 3-5 hidden layers.
It is said that the no. of hidden neurons must be 2/3 the size of the input, plus the size of the output layer. But that’s not always the case, they also depend on other factors like, the complexity of the training, outliers, simplicity and complexity of the dataset etc and etc.
Less number of neurons can lead to underfitting, whereas higher number can cause overfitting like problems. An optimum of all the conditions is the necessity."
emm, ok. So for example I have 100 of input features. By your formula I should use in average 100 * 2 / 3 = 66 neurons. And you say that hidden layers are something like constant from 1 to 5. And do you suggest just emperically to distribute this 66 neurons to this hidden layers? something like:
22 (first layer), 22 (second layer), 22 (third layer)
or 40, 10, 10, 6
or 50, 10
or 20, 20, 10, 10, 6
…
And try to fetch the best cobination from this process?