Choosing the architecture of a neural network depends on the problem at hand. Factors to consider include the type and volume of data, the complexity of the patterns to be learned, the computational resources available, and the desired level of accuracy. Experimentation and iteration are often required to find the optimal architecture.