Preparing the data

For our task, we require a collection of labeled photos of fruits. As you may recall from Chapter 1Introduction to Machine Learning, this type of machine learning problem is known as supervised learning. We need our model to take in an image and return the label of what it thinks the image is, also known as multi-class classification

Go ahead and collect photos of fruits. Create ML allows for multiple ways of organizing your data, but I find that ad hoc collection is easiest done by organizing it in folders, as shown here:

Source: http://www.image-net.org/ 

Here, we have organized our data into folders, where the folder ...

Get Machine Learning with Core ML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.