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

Bringing it all together


If you haven't done already, pull down the latest code from the accompanying repository: https://github.com/packtpublishing/machine-learning-with-core-ml. Once downloaded, navigate to the directory Chapter4/Start/FacialEmotionDetection and open the project FacialEmotionDetection.xcodeproj. Once loaded, you will hopefully recognize the project structure as it closely resembles our first example. For this reason, we will just concentrate on the main components that are unique for this project, and I suggest reviewing previous chapters for clarification on anything that is unclear. 

Let's start by reviewing our project and its main components; your project should look similar to what is shown in the following screenshot: 

As shown in the preceding screenshot, the project looks a lot like our previous projects. I am going to make an assumption that the classes VideoCapture, CaptureVideoPreviewView, and UIColorExtension look familiar and you are comfortable with their contents...