CNN for classification with Keras

Now, let's implement a CNN with Keras. We need to introduce the convolutional, pooling, and flatten layers. The next subsection shows how to implement and use a CNN for MNIST classification again. As we shall see, the accuracy on the test dataset increases.

Get Hands-On Image Processing with Python 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.