Book Image

Machine Learning with Core ML

Book Image

Machine Learning with Core ML

Overview of this book

Core ML is a popular framework by Apple, with APIs designed to support various machine learning tasks. It allows you to train your machine learning models and then integrate them into your iOS apps. Machine Learning with Core ML is a fun and practical guide that not only demystifies Core ML but also sheds light on machine learning. In this book, you’ll walk through realistic and interesting examples of machine learning in the context of mobile platforms (specifically iOS). You’ll learn to implement Core ML for visual-based applications using the principles of transfer learning and neural networks. Having got to grips with the basics, you’ll discover a series of seven examples, each providing a new use-case that uncovers how machine learning can be applied along with the related concepts. By the end of the book, you will have the skills required to put machine learning to work in their own applications, using the Core ML APIs
Table of Contents (16 chapters)
Title Page
Packt Upsell
Contributors
Preface
Index

Recurrent Neural Networks for drawing classification


The model used in this chapter was trained on the dataset used in Google's AI experiment Quick, Draw!

Quick, Draw! is a game where players are challenged to draw a given object to see whether the computer can recognize it; an extract of the data is shown as follows:

The technique was inspired from the work done on handwritten recognition (Google Translate), where, rather than looking at the image as a whole, the team worked with data features describing how the characters were drawn. This is illustrated in the following image:

Source: https://experiments.withgoogle.com/ai/quick-draw

The hypothesis here is that there exists some consistent pattern of how people draw certain types of objects; but to discover those patterns, we would need a lot of data, which we do have. The dataset consists of over 50 million drawings across 345 categories obtained cleverly, from the players of the Quick, Draw! game. Each sample is described with timestamped...