CNNs for image tagging

Let's work on putting our new knowledge of CNNs to the test. We're going to work through one of the most popular tasks for CNNs: image classification. 

In an image classification task, our horse looks at a given image and determines the probability that a certain object is an image. In the following example, the image is 248 pixels wide, 400 pixels tall, and has three color channels: redgreen, and blue (RGB). Therefore, the image consists of 248 x 400 x 3 numbers, or a total of 2,97, 600 numbers. Our job is to turn these numbers into a single classified label; is this horse?

While this might seem a simple task for ...

Get Hands-On Artificial Intelligence for Beginners 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.