Identifying Cats and Dogs

Imagine you run a social media website where users can post and view pictures of animals. To simplify the site as much as possible, you don’t want users to attach any additional information to these images, such as whether or not the image is that of a dog or a cat. However, you do want users to be able to filter their feeds based on such criteria. So, how can you accomplish this without requiring users to tag their images with a specific category? You guessed it: machine learning.

In this example, you’ll train a model to classify images into one of two categories: cats or dogs. While you can easily extend the model to distinguish between any kind of animal, by reducing the number to two, you reduce the amount of data ...

Get Machine Learning in Elixir 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.