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

Chapter 7. Assisted Drawing with CNNs

So far, we have seen how we can leverage Core ML and, in general, machine learning (ML) to better understand the physical world we live in (perceptual tasks). From the perspective of designing user interfaces, this allows us to reduce the friction between the user and the system. For example, if you are able to identify the user from a picture of their face, you can remove the steps required for authentication, as demonstrated with Apple's Face ID feature which is available on iPhone X. With Core ML, we have the potential to have devices better serve us rather than us serving them. This adheres to a rule stated by developer Eric Raymond that acomputer should never ask the user for any information that it can auto detect, copy, or deduce.

We can take this idea even further; given sufficient amounts of data, we can anticipate what the user is trying to do and assist them in achieving their tasks. This is the premise of this chapter. Largely inspired and...