SlideShare a Scribd company logo
Lars Gregori, SAP Hybris
November 25, 2017
Using A Trained Model
On Your Mobile Device
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 2
CoreML
▪ What is CoreML?
Train a model
▪ Train, convert, and add a model to an app.
Use a model
▪ Add an available model to an app.
Agenda
CoreML
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 4
A trained model is the result of applying a machine learning algorithm
to a set of training data.
The model makes predictions based on new input data.
CoreML
https://developer.apple.com/documentation/coreml
… integrates trained machine learning models into your app.
XOR example
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 6
0 xor 0 = 0
0 xor 1 = 1
1 xor 0 = 1
1 xor 1 = 0
XOR
if a != b
INTERNAL© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 7
DEMO
Inception v3 example
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 9
arXiv:1512.00567 - Rethinking the Inception Architecture for Computer Vision
Inception v3
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 10
Inceptionv3.mlmodel
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 11
Inceptionv3.mlmodel
INTERNAL© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 12
INTERNAL© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 13
DEMO
Style transfer example
INTERNAL© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 15https://developer.apple.com/documentation/coreml/converting_trained_models_to_core_ml
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 16
Style transfer with Torch & CoreML
https://blog.prismalabs.ai/diy-prisma-app-with-coreml-6b4994cc99e1
INTERNAL© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 17
DEMO
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 18
Summary
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 19
Tensorflow Mobile
Tensorflow Lite
Android?
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 20
CoreML

https://developer.apple.com/documentation/coreml
XOR example

https://amundtveit.com/2017/06/07/keras-deep-learning-with-apples-coremltools-on-ios-11-part-1/
Rethinking the Inception Architecture for Computer Vision.

https://arxiv.org/abs/1512.00567
Torch7 -> CoreML 

https://github.com/prisma-ai/torch2coreml
Awesome Core ML Models

https://github.com/likedan/Awesome-CoreML-Models
Links
Thank you.
Lars Gregori, SAP Hybris
@choas
Hi Lars …
No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP SE or an SAP affiliate company.
The information contained herein may be changed without prior notice. Some software products marketed by SAP SE and its distributors contain proprietary software components 

of other software vendors. National product specifications may vary.
These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP or its affiliated
companies shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP or SAP affiliate company products and services are those that are 

set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.
In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation, or to develop or release
any functionality mentioned therein. This document, or any related presentation, and SAP SE’s or its affiliated companies’ strategy and possible future developments, products, and/
or platform directions and functionality are all subject to change and may be changed by SAP SE or its affiliated companies at any time for any reason without notice. The information
in this document is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. All forward-looking statements are subject to various 

risks and uncertainties that could cause actual results to differ materially from expectations. Readers are cautioned not to place undue reliance on these forward-looking statements,
and they should not be relied upon in making purchasing decisions.
SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate company) 

in Germany and other countries. All other product and service names mentioned are the trademarks of their respective companies. 

See http://global.sap.com/corporate-en/legal/copyright/index.epx for additional trademark information and notices.
© 2017 SAP SE or an SAP affiliate company. All rights reserved.

More Related Content

PPTX
Design Patterns in ABAP Objects - SAP Forum / Tech Ed sunumu (2016)
PDF
DevRel @ SAP
PDF
2011 BtoB Magazine Net Marketer Seminar "Digital branded experiences"
PDF
Finite capacity planning and scheduling for manufacturing: Odoo – frePPLe con...
PPTX
aditerna SRP - Simulation Resource Planning
PDF
INDELPRO - How Is a Polypropylene Resin Maker Maximizing on Cloud Technology ...
PDF
From Russia with UX
PDF
Sap abap online training
Design Patterns in ABAP Objects - SAP Forum / Tech Ed sunumu (2016)
DevRel @ SAP
2011 BtoB Magazine Net Marketer Seminar "Digital branded experiences"
Finite capacity planning and scheduling for manufacturing: Odoo – frePPLe con...
aditerna SRP - Simulation Resource Planning
INDELPRO - How Is a Polypropylene Resin Maker Maximizing on Cloud Technology ...
From Russia with UX
Sap abap online training

What's hot (10)

PPT
Smau Roma 2010 Massimo Sala
PPTX
Microservices without PaaS is like Bavaria without Beer
PDF
Sap io t-technology-day-at-frankfurt
PDF
Open sap fiori1_week_01_unit_01_courseintro
PPT
New Opportunities Created By New Xsemble Technology
PDF
160d74ec 597c-0010-82c7-eda71af511fa
DOCX
WPMResume
PPTX
Version 9 crm customer relationship mngt
PDF
Performance Support Architektur & Organisation
DOCX
SAP EWN 9.5
Smau Roma 2010 Massimo Sala
Microservices without PaaS is like Bavaria without Beer
Sap io t-technology-day-at-frankfurt
Open sap fiori1_week_01_unit_01_courseintro
New Opportunities Created By New Xsemble Technology
160d74ec 597c-0010-82c7-eda71af511fa
WPMResume
Version 9 crm customer relationship mngt
Performance Support Architektur & Organisation
SAP EWN 9.5
Ad

Similar to Using a trained model on your mobile device (20)

PDF
SAP Leonardo Machine Learning - Making Business Applications Intelligent
PDF
Masterclass Machine Learning (Ronald Kleijn)
PDF
Daniel Dalhmeier - 2017 - On the Challenges of Translating NLP Research into ...
PPTX
Tech Ed Barcelona - UX Transformation with Machine Learning and SAP Cloud Pla...
PDF
CIO Leadership Summit 2018 - From Digital to Intelligent Enterprise
PDF
openSAP_s4h27_Week_4_2025_All_Slides.pdf
PDF
Norman Sasono - Incorporating AI/ML into Your Application Architecture
PDF
Norman Sasono - Incorporating AI/ML into Your Application Architecture
PDF
ML crash course
PPTX
Integrating Machine Learning Capabilities into your team
PDF
SAP Booth Showcase Overview at HMUSA - IMTS 2018
PDF
SAP Developers Update
PDF
SAP Inside Track Walldorf 2018 - Demistify SAP Leonardo Machine Learning Foun...
PDF
Building cool native ios enterprise apps with sap cloud platform sdk for ios
PPTX
PDF
Deep Learning In Enterprise
PDF
DevOps Days Rockies MLOps
PDF
Machine Learning vs. Deep Learning in Mobile App Development: Understanding t...
PDF
AI and Deep Learning
PPTX
Why you don't need maths to get benefits of ml
SAP Leonardo Machine Learning - Making Business Applications Intelligent
Masterclass Machine Learning (Ronald Kleijn)
Daniel Dalhmeier - 2017 - On the Challenges of Translating NLP Research into ...
Tech Ed Barcelona - UX Transformation with Machine Learning and SAP Cloud Pla...
CIO Leadership Summit 2018 - From Digital to Intelligent Enterprise
openSAP_s4h27_Week_4_2025_All_Slides.pdf
Norman Sasono - Incorporating AI/ML into Your Application Architecture
Norman Sasono - Incorporating AI/ML into Your Application Architecture
ML crash course
Integrating Machine Learning Capabilities into your team
SAP Booth Showcase Overview at HMUSA - IMTS 2018
SAP Developers Update
SAP Inside Track Walldorf 2018 - Demistify SAP Leonardo Machine Learning Foun...
Building cool native ios enterprise apps with sap cloud platform sdk for ios
Deep Learning In Enterprise
DevOps Days Rockies MLOps
Machine Learning vs. Deep Learning in Mobile App Development: Understanding t...
AI and Deep Learning
Why you don't need maths to get benefits of ml
Ad

More from Lars Gregori (20)

PDF
BYOM - Bring Your Own Model
PDF
uTensor - embedded devices and machine learning models
PDF
SAP Leonardo Machine Learning
PDF
Minecraft and reinforcement learning
PDF
Machine Learning Models on Mobile Devices
PDF
Minecraft and Reinforcement Learning
PDF
IoT protocolls - smart washing machine
PDF
[DE] AI und Minecraft
PDF
Minecraft and Reinforcement Learning
PDF
[DE] IoT Protokolle
PDF
Using a trained model on your mobile device
PDF
AI and Minecraft
PDF
[German] Boards für das IoT-Prototyping
PDF
IoT, APIs und Microservices - alles unter Node-RED
PDF
Web Bluetooth - Next Generation Bluetooth?
PDF
Embedded Rust – Rust on IoT devices
PDF
Embedded Rust on IoT devices
PDF
IoT mit Rust programmieren
PDF
Boards for the IoT-Prototyping
PDF
Groß steuert klein - Wie lässt sich ein Arduino steuern?
BYOM - Bring Your Own Model
uTensor - embedded devices and machine learning models
SAP Leonardo Machine Learning
Minecraft and reinforcement learning
Machine Learning Models on Mobile Devices
Minecraft and Reinforcement Learning
IoT protocolls - smart washing machine
[DE] AI und Minecraft
Minecraft and Reinforcement Learning
[DE] IoT Protokolle
Using a trained model on your mobile device
AI and Minecraft
[German] Boards für das IoT-Prototyping
IoT, APIs und Microservices - alles unter Node-RED
Web Bluetooth - Next Generation Bluetooth?
Embedded Rust – Rust on IoT devices
Embedded Rust on IoT devices
IoT mit Rust programmieren
Boards for the IoT-Prototyping
Groß steuert klein - Wie lässt sich ein Arduino steuern?

Recently uploaded (20)

PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPT
Teaching material agriculture food technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
cuic standard and advanced reporting.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Approach and Philosophy of On baking technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Encapsulation theory and applications.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Teaching material agriculture food technology
Per capita expenditure prediction using model stacking based on satellite ima...
cuic standard and advanced reporting.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Understanding_Digital_Forensics_Presentation.pptx
Approach and Philosophy of On baking technology
Unlocking AI with Model Context Protocol (MCP)
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Diabetes mellitus diagnosis method based random forest with bat algorithm
Advanced methodologies resolving dimensionality complications for autism neur...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Encapsulation theory and applications.pdf
Empathic Computing: Creating Shared Understanding
Profit Center Accounting in SAP S/4HANA, S4F28 Col11

Using a trained model on your mobile device

  • 1. Lars Gregori, SAP Hybris November 25, 2017 Using A Trained Model On Your Mobile Device
  • 2. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 2 CoreML ▪ What is CoreML? Train a model ▪ Train, convert, and add a model to an app. Use a model ▪ Add an available model to an app. Agenda
  • 4. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 4 A trained model is the result of applying a machine learning algorithm to a set of training data. The model makes predictions based on new input data. CoreML https://developer.apple.com/documentation/coreml … integrates trained machine learning models into your app.
  • 6. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 6 0 xor 0 = 0 0 xor 1 = 1 1 xor 0 = 1 1 xor 1 = 0 XOR if a != b
  • 7. INTERNAL© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 7 DEMO
  • 9. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 9 arXiv:1512.00567 - Rethinking the Inception Architecture for Computer Vision Inception v3
  • 10. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 10 Inceptionv3.mlmodel
  • 11. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 11 Inceptionv3.mlmodel
  • 12. INTERNAL© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 12
  • 13. INTERNAL© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 13 DEMO
  • 15. INTERNAL© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 15https://developer.apple.com/documentation/coreml/converting_trained_models_to_core_ml
  • 16. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 16 Style transfer with Torch & CoreML https://blog.prismalabs.ai/diy-prisma-app-with-coreml-6b4994cc99e1
  • 17. INTERNAL© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 17 DEMO
  • 18. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 18 Summary
  • 19. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 19 Tensorflow Mobile Tensorflow Lite Android?
  • 20. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ 20 CoreML
 https://developer.apple.com/documentation/coreml XOR example
 https://amundtveit.com/2017/06/07/keras-deep-learning-with-apples-coremltools-on-ios-11-part-1/ Rethinking the Inception Architecture for Computer Vision.
 https://arxiv.org/abs/1512.00567 Torch7 -> CoreML 
 https://github.com/prisma-ai/torch2coreml Awesome Core ML Models
 https://github.com/likedan/Awesome-CoreML-Models Links
  • 21. Thank you. Lars Gregori, SAP Hybris @choas Hi Lars …
  • 22. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP SE or an SAP affiliate company. The information contained herein may be changed without prior notice. Some software products marketed by SAP SE and its distributors contain proprietary software components 
 of other software vendors. National product specifications may vary. These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP or its affiliated companies shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP or SAP affiliate company products and services are those that are 
 set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation, or to develop or release any functionality mentioned therein. This document, or any related presentation, and SAP SE’s or its affiliated companies’ strategy and possible future developments, products, and/ or platform directions and functionality are all subject to change and may be changed by SAP SE or its affiliated companies at any time for any reason without notice. The information in this document is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. All forward-looking statements are subject to various 
 risks and uncertainties that could cause actual results to differ materially from expectations. Readers are cautioned not to place undue reliance on these forward-looking statements, and they should not be relied upon in making purchasing decisions. SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate company) 
 in Germany and other countries. All other product and service names mentioned are the trademarks of their respective companies. 
 See http://global.sap.com/corporate-en/legal/copyright/index.epx for additional trademark information and notices. © 2017 SAP SE or an SAP affiliate company. All rights reserved.