Custom Models with Create ML

Sep 18 2024 · Swift 5.10, iOS 17.5, Xcode 15.4

Lesson 02: Training Your Custom Model with Create ML

Demo

Episode complete

Play next episode

Next

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

MoodTracker: Creating and Evaluating Emotion Classification Models

In this demo, you’ll work on building emotion classification models for the MoodTracker app. The objective is to create three image classifiers: one with default settings using a dataset with two labels, one with all augmentations enabled for the same two-label dataset, and a third using a three-label dataset with all augmentations. This approach will help clarify the effects of augmentations and additional labels on model accuracy.

Building the Image Classifiers

Open Xcode and then select “Xcode” > “Open Developer Tool” > “Create ML” to access the Create ML app. Click “New Document” or navigate to “File” > “New” > “Project”. Select the “Image Classification” template and proceed by clicking “Next”. Name it EmotionsImageClassifier and choose the save location. The Create ML app will now display the three main parts as seen previously.

Evaluating Model Performance

After training the models, evaluate their performance by checking metrics and testing with real data in the preview section. Open the “Evaluation” tab of the second classifier and press “Testing” to review the results for the testing data. You can see the test accuracy and other statistics, including the lowest precision type.

See forum comments
Cinema mode Download course materials from Github
Previous: Instruction Next: Conclusion