Over the past few years, machine learning has gained in popularity. However, it has never been easy to implement in mobile applications—that is, until Apple released the CoreML framework as part of iOS 11. CoreML is Apple's solution to all of the problems they have run into themselves while implementing machine learning for iOS. As a result, CoreML should have the fastest, most efficient implementations for working with complex machine learning models, through an interface that is as simple and flexible as possible.
In this chapter, you will learn what machine learning is, how it works, and how you can use trained machine learning models in your apps. You will also learn how you can use Apple's Vision framework to analyze images, and you'll see how it integrates with CoreML for powerful image detection. Lastly, you'll learn how to use the new CreateML tool to train your own models. You will learn about these topics in the following sections:
- Understanding machine learning and CoreML
- Combining CoreML and computer vision
- Training your own models with CreateML
By the end of this chapter, you will be able to train and use your own CoreML models to make the apps you build more intelligent and compelling.