ABSTRACT

This chapter deals with machine learning basics to develop a lasting impression of fundamental machine learning concepts. It explores various supervised and unsupervised techniques and how to implement them in Swift. Core Machine Learning (ML) is Apple's machine learning framework that enables developers to utilize powerful ML models on-device by taking full advantage of a great variety of model types. Core ML is optimized for on-device performance by leveraging Apple hardware and limiting memory footprint and power consumption. A model could be viewed as the result of applying a machine-learning algorithm to a set of training data. Therefore, Core ML could be regarded as the foundation for domain-specific frameworks and functionality. Core ML supports Vision for analyzing images, Natural Language for processing text, Speech for converting audio to primitives like Accelerate and Metal Performance Shaders.