Results of the multiple hidden layer
Now, we'll look into what's going on inside a deep neural network. First, we'll verify the model accuracy. Then, we'll visualize and study the pixel weights. Finally, we'll look at the output weights as well.
After you've trained your deep neural network, let's take a look at the model accuracy. We'll do this the same way that we did for the single hidden layer model. The only difference this time, is that we have many more saved samples of the training and testing accuracy, having gone from many more epochs.
As always, don't worry if you don't have Matplotlib; printing parts of the arrays is fine.
Understanding the multiple hidden layers graph
Execute the following code to see the result:
# Plot the accuracy curves ...
Get Hands-On Deep Learning with TensorFlow 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.