From the course: Machine Learning for iOS Developers
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Prepare the data for Turi Create - iOS Tutorial
From the course: Machine Learning for iOS Developers
Prepare the data for Turi Create
- [Instructor] Let us now start preparing the data for our custom machine learning model. And I've already opened up my ADAM text editor and I'm going to create a new file and save it. I'm going to call it prepareData.py. And in this file, the first thing that we need to do is import turicreate so that we can work with turicreate and we can also use the AS keyword and append a TC so that we can just use TC to actually access the turicreate library. And now, as I've already told you, the first step is creating an sframe and also loading our images into this sframe. So I'm creating a data object right here using turicreate. And now we can directly use image_analysis and from image analysis, we're using the load_images function. And what we can do with that is first of all specify the path of where our images are located. In our case, this is trainingData. And we've already created that folder earlier. And there are all the files, all the images of our cats and dogs located. So I'm…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.