When we used a deep neural network to training a model for predicting a particular problem, the number of network layer and number of nodes for each layer are the difficult decision in a topic. The trial and error approach is a good method for modifying the number of network layers and number of nodes. The way I often use the grid search approach. Can someone share their own method of setting the number of network layers and the number of nodes in deep neural network?