Increasing the depth of network

An increase in the depth of a hidden layer is the same as increasing the number of hidden layers in a neural network.

Typically, for a higher number of hidden units in a hidden layer and/or higher number of hidden layers, the predictions are more accurate.

Given that the Adam optimizer or RMSprop has a saturated accuracy after certain number of epochs, let's switch back to stochastic gradient descent to understand the accuracy when the model is run for 300 epochs; but we are using more number of units in the hidden layer this time:

Note that by using 2,000 units in the hidden layer, our accuracy increases to ...

Get Hands-On Machine Learning on Google Cloud Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.