SlideShare a Scribd company logo
Apple Machine Learning
Denise Nepraunig
Do Machine Learning
they said.
It will be fun they said.
Statistics
Algebra
Matrices
Vectors
Eigenvectors
Multivariable
Calculus
Gradient Descent
Eigenvalues
Python
Pandas
scikit-learn
Neural Networks
Tensorflow
Jupyter Notebooks
Support Vector
Machines
Naïve Bayes
Decision Tree Classifier
Boosted Trees Regression
R
Matlab
Logistic Regression
Random Forest Classifier
RNN
LSTM
CNN
NLP
Apple Machine Learning
Apple
to the
rescue.
Create ML
Released 2018
Part of Xcode 10
Machine Learning without additional
tools, simple and easy to use.
Demos
Regression
Text Classifier
Image Classifier
Regression
Predict a number, e.g. house prices
Which Regression should you use?
• Logistic Regression
• Boosted Trees Regression
• Random Forest Regression
• Decision Tree Regression
• …
???
weight, price
Let the framework
choose the best
Regression for you!
The framework
analyzes the data and
chooses the best
model automatically.
Nevertheless it is still possible
to use a MLLogisticRegression,
MLRandomForestRegression,
MLBoostedTreesRegression ...
Model can be saved with on line of code and
used in Xcode later.
Text classification
Predict a label, e.g. categories or spam
food, rating
tasty, disgusting
Create ML – Image Classifier Training Data
Used 12 images for each category
Create ML – Image Classifier
Xcode 10 Mac OS Playground
drag & drop
drag & drop
Apple Machine Learning
Apple Machine Learning
IMG_2449.jpeg
Apple Machine Learning
Turi Create
Python Framework
Mission statement:
You don't have to be a machine learning expert to add
recommendations, object detection, image
classification, image similarity or activity classification
to your app.
Apple Machine Learning
Turi Create
Very easy to train
machine learning
models as a developer.
No math involved, no
tuning of parameters for
the model needed, high
abstraction level, Python
coding is readable even if
you don’t know Python,
model can be exported to
be used in Xcode.
SFrame is a tabular data
structure which can
also contain images
Demo
Object
Detection
Image Classifier
An Image Classifier is not helpful
for analyzing such a picture.
Object Detection
Object detection is the task of simultaneously classifying (what) and
localizing (where) object instances in an image.
Object Detection - data preparation
Images and annotations have been loaded and trained
with an object detection model (see previous slides).
Afterwards the model was loaded and used to inspect the
shown pictures. The model can also be exported to be
used in Xcode.
Links
Create ML:
https://developer.apple.com/documentation/createml/
https://developer.apple.com/videos/play/wwdc2018/703/
Turi Create:
https://apple.github.io/turicreate/docs/userguide/
https://developer.apple.com/videos/play/wwdc2018/712/
Thank
you!

More Related Content

Apple Machine Learning