Playground (Keras)
Use Keras to build your own neural network model for testing MNIST.
We'll cover the following...
Revision
Before we move on, let’s practice the code for a little while. That’s optional, but it’s a good way to revise these concepts.
Go through all the codes which we have covered in this chapter by launching the below app:
Please login to launch live app!
Hands on
Let’s take the MNIST network we built in Part II of this course and rewrite it from the beginning using Keras.
Keras already comes with a few common datasets, MNIST included, so we don’t have to use our mnist.py
library. Instead, we can load MNIST and one-hot encode its labels with this piece of code:
from keras.datasets import mnist
from tensorflow.keras.utils import
...