MATLAB: How to choose number of hidden layers

neural network

Hi, I want to design a neural network with 3 input and 1 output. Samples are 21 Millions. For predictions and I don't know how many hidden layers and also the network parameters to use to get best results

Best Answer

When you call patternnet, pass it a vector of the sizes of the hidden layers.