SlideShare a Scribd company logo
An Introduction Deep
Learning with TensorFlow
• How Am I?
• Machine Learning & Deep Networks
• What is ML ?
• Neural Network Example
• What is Deep Learning?
• TensorFlow (v1.0)
• What is TF?
• TF Architecture
• TF evolution
• TF language features through an example
• The Computational Graph
• TensorBoard
• TF in Google Cloud ML
• TF High Level API
• TF Serving
• TensorFlow Hands-On
• TensorFlow Examples
• Linear Model
• Shallow MNIST
• Deep MNIST
• ConvNet MNIST
Agenda
1
How Am I ?
• Ndjido Ardo BAR : Data Scientist @ Davidson Consulting UAE
• Background : Research In Mathematics
• Now: Working in @DU Telecom as a Consultant
• Past:
• Worked @AXA (Paris): Develop A Credit Scoring Model with H2O
• Worked @BearingPoint Hypercube: Did consulting for different companies:
• Hypercube (Paris): A web-based Machine Learning Platform
• Jonson & Jonson (Florida): Lens Design Process Optimisation (Vistakon)
• Keolis: Setup a Big Data Platform and Developed a Fraud Detection Model
• And many more …
• Co-Founder of a StartUp (MLouma)
• Worked @Pasteur Institute: Involved in BioStatistical Research
@ndjido
2
Machine Learning
&
Deep Networks
3
What Machine Learning?
- Machine Learning is a field of Computer Science that
aims at giving computers the ability to learn complex
patterns without being explicitly programmed.
- Compared to Statistical models, ML does not make
strong hypothesis on the distribution of the variables in a
model.
Random Forest Neurale Network K-means
Few examples of ML Algorithm
4
What Machine Learning?
Detailed Example a ML Algorithm: Neural Network
Y(real)
Y(estimated)
Error
BACK PROPAGATION
FORWARD PROPAGATION
1
2
activation function
5
What Machine Learning?
Example a ML Algorithm: Neural Network
Activation Functions
FORWARD PROPAGATION
Neurone
ErrorOutput
loss function
6
What Machine Learning?
Example a ML Algorithm: Neural Network
Error =Output
BACK PROPAGATION
Layer (L)Layer (L-1)
Chain Rule
Update (Gradient Descent)
learning rate
1
2
7
What is Deep Learning ?
Deep Learning is one of the field of AI (Artificial
Intelligence) using sophisticated techniques to train
multi-layers Neural Networks with complex data format
without the need to perform Feature Engineering.
8
What is Deep Learning ?
Why does it even matter ?
- New techniques to easier build better Neural Networks:
- solutions to vanishing or exploding gradient
- Representational learning
(source: UBC)
9
What is Deep Learning ?
Why does it even matter ?
Performance
Amount of Data
Classical Algorithms
Deep Learning
- Hardware Performances with GPU and distributed computation
- Overwhelming and more complex amount of data (Big Data):
- sensors data
- Video,
- Voice
- Outperforms classical methods with complex data
10
What is Deep Learning ?
Basic Deep Learning Architectures
Convolutional Network
Recurrent Neural Network Recursive Neural Network
Deep Belief Network AutoEncoder
11
Deep Learning Library Zoo
12
TensorFlow v1.0
13
TensorFlow
What is TensorFlow ?
- An Open Source Machine Learning tool started by the
Google Brain Team in 2015
- TF was create to build complex Neural Networks but is
general enough to build a wide variety of ML algorithm or
computation systems
- A library for numerical computation using Data Flow Graphs
- TF is highly scalable. It can be used on desktop, mobile
devices, and Data centres with both CPU and GPU
- TF can be used by Researchers, Data Scientists and
Developers.
Data Flow Graph
This is a Tensor
14
TensorFlow
TensorFlow Architecture
TensorFlow Core Execution System
CPU GPU Android IOS …
TF supports a lot of front-end API : c++, Python, …
15
TensorFlow
TensorFlow, the most active ML Open Source tool !
(source: Google Next)
~1000 commits / month
16
TensorFlow Features
Anatomy of a TF Model: The Babylonian Algorithm
1
2
3
4 5
6
7
8
1 Constant value
2 Type casting -> float32
3 Variable in the Graph
4 Updating a Variable
5 Adding 2 Variables
6 Session Object
7 Initialise All Variables
8 Running the Model
17
TensorFlow Features
TF Placeholder and Feed Dictionary
1 Placeholder for input value A
2 Feeding the graph with inputs A & B
1
2
Notice there no need for initialisation
18
TensorFlow Features
TF Computational Graph
A TF program performs 2 main steps:
1) Assembling a ”lazy” Graph
2) Running the computation
Result
After Running in a tf.Session()
Computational
Graph
19
TensorFlow Features
TF Variable Scope & TensorBoard
Massive deep neural network are notoriously hard to debug and optimise. TensorBoard
just make it easier!
You can use TensorBoard to visualise your TensorFlow graph, plot quantitative metrics
about the execution of your graph, and show additional data like images that pass
through it. When TensorBoard is fully configured, it looks like this:
Demo with a Linear Regression
Decorate TF programs
with tf.name_scope
20
TensorFlow Features
Run TF in Cloud ML
Cloud StorageCloud ML
setup.py
submit to Cloud ML
with gcloud ml-engine package uploaded1
2
3
4
4
data fetched
train + model stored
Demo on Cloud ML 21
TensorFlow Features
TensorFlow High Level API
• Different Level of abstraction for Researchers, Data Scientist
and Developers
• With ML Toolkit TF is now a serious competition to Scikit-Learn
(source: Google Next)
22
TensorFlow Features
TensorFlow Serving : Serving Pipeline
Data
TF Cluster
TF Model Storage
Training
+
Storage
Model #1
Model #2
Model #n
…
TensorFlow Serving
Client
Client
Client
gRPC
23
Hands-on TensorFlow
24
https://github.com/ndjido/tensorflow-dubai-meetup-hands-on
TensorFlow Hands-On
. . .
784 = 28 x 28 pixels
(.8, .2, 0, 0, 0, 0, 0, 0, 0, 0)
(1, 0, 0, 0, 0, 0, 0, 0, 0, 0)
Predicted
One-hot encoding
0 1 2 3 4 5 6 7 8 9
flattened
Shallow MNIST
. . .
25
784 = 28 x 28 pixels
0 1 2 3 4 5 6 7 8 9
. . .
. . .
. . .
. . .
TensorFlow Hands-On
Deep MNIST
200
100
60
30. . .
10
26
TensorFlow Hands-On
ConvNet MNIST
28
28
28 x 28 x 6
14 x 14 x 12
7 x 7 x 24
200
0 1 2 3 4 5 6 7 8 9
27
Thank You!
Questions ?
@ndjido
28

More Related Content

PDF
Predictive churn h20_dsx
PDF
GDG-Shanghai 2017 TensorFlow Summit Recap
PPTX
Tensorflow 101 @ Machine Learning Innovation Summit SF June 6, 2017
PPTX
Big data app meetup 2016-06-15
PDF
Large Scale Deep Learning with TensorFlow
PPTX
Josh Patterson, Advisor, Skymind – Deep learning for Industry at MLconf ATL 2016
PDF
Netflix machine learning
Predictive churn h20_dsx
GDG-Shanghai 2017 TensorFlow Summit Recap
Tensorflow 101 @ Machine Learning Innovation Summit SF June 6, 2017
Big data app meetup 2016-06-15
Large Scale Deep Learning with TensorFlow
Josh Patterson, Advisor, Skymind – Deep learning for Industry at MLconf ATL 2016
Netflix machine learning

What's hot (19)

PDF
Kaz Sato, Evangelist, Google at MLconf ATL 2016
PPTX
An Introduction to TensorFlow architecture
PPTX
Tensorflow vs MxNet
PPTX
Braxton McKee, Founder & CEO, Ufora at MLconf SF - 11/13/15
PDF
TensorFlow 101
PPTX
Tom Peters, Software Engineer, Ufora at MLconf ATL 2016
PDF
More Data Science with Less Engineering: Machine Learning Infrastructure at N...
PDF
On-device machine learning: TensorFlow on Android
PDF
TensorFlow
PDF
Machine learning at scale with Google Cloud Platform
PPTX
Narayanan Sundaram, Research Scientist, Intel Labs at MLconf SF - 11/13/15
PPTX
Braxton McKee, CEO & Founder, Ufora at MLconf NYC - 4/15/16
PDF
Rajat Monga, Engineering Director, TensorFlow, Google at MLconf 2016
PDF
Introduction To TensorFlow
PPTX
Tensorflow
PDF
A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, & PyTorch with B...
PDF
Separating Hype from Reality in Deep Learning with Sameer Farooqui
PPTX
Avi Pfeffer, Principal Scientist, Charles River Analytics at MLconf SEA - 5/2...
PPTX
The deep learning tour - Q1 2017
Kaz Sato, Evangelist, Google at MLconf ATL 2016
An Introduction to TensorFlow architecture
Tensorflow vs MxNet
Braxton McKee, Founder & CEO, Ufora at MLconf SF - 11/13/15
TensorFlow 101
Tom Peters, Software Engineer, Ufora at MLconf ATL 2016
More Data Science with Less Engineering: Machine Learning Infrastructure at N...
On-device machine learning: TensorFlow on Android
TensorFlow
Machine learning at scale with Google Cloud Platform
Narayanan Sundaram, Research Scientist, Intel Labs at MLconf SF - 11/13/15
Braxton McKee, CEO & Founder, Ufora at MLconf NYC - 4/15/16
Rajat Monga, Engineering Director, TensorFlow, Google at MLconf 2016
Introduction To TensorFlow
Tensorflow
A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, & PyTorch with B...
Separating Hype from Reality in Deep Learning with Sameer Farooqui
Avi Pfeffer, Principal Scientist, Charles River Analytics at MLconf SEA - 5/2...
The deep learning tour - Q1 2017
Ad

Similar to Deep learning with TensorFlow (20)

PDF
TECHNICAL OVERVIEW NVIDIA DEEP LEARNING PLATFORM Giant Leaps in Performance ...
PDF
Google Cloud Platform Empowers TensorFlow and Machine Learning
PDF
Track2 02. machine intelligence at google scale google, kaz sato, staff devel...
PPTX
Deep Learning Frameworks 2019 | Which Deep Learning Framework To Use | Deep L...
PPTX
Introduction to Tensor Flow-v1.pptx
PDF
Austin,TX Meetup presentation tensorflow final oct 26 2017
PDF
Introducing TensorFlow: The game changer in building "intelligent" applications
PPTX
Hadoop training in mumbai
PDF
Big Data Analytics (ML, DL, AI) hands-on
PDF
Persian MNIST in 5 Minutes
PPTX
TENSORFLOW liberayin python language.pptx
PDF
ML in the Browser: Interactive Experiences with Tensorflow.js
PPTX
What is TensorFlow? | Introduction to TensorFlow | TensorFlow Tutorial For Be...
PPTX
Deep learning framework
PDF
Top 7 Frameworks for Integration AI in App Development
PPTX
Tensorflow Ecosystem
PDF
Google APAC Machine Learning Expert Day
PPTX
Deep Learning on Qubole Data Platform
PDF
Going deep (learning) with tensor flow and quarkus
TECHNICAL OVERVIEW NVIDIA DEEP LEARNING PLATFORM Giant Leaps in Performance ...
Google Cloud Platform Empowers TensorFlow and Machine Learning
Track2 02. machine intelligence at google scale google, kaz sato, staff devel...
Deep Learning Frameworks 2019 | Which Deep Learning Framework To Use | Deep L...
Introduction to Tensor Flow-v1.pptx
Austin,TX Meetup presentation tensorflow final oct 26 2017
Introducing TensorFlow: The game changer in building "intelligent" applications
Hadoop training in mumbai
Big Data Analytics (ML, DL, AI) hands-on
Persian MNIST in 5 Minutes
TENSORFLOW liberayin python language.pptx
ML in the Browser: Interactive Experiences with Tensorflow.js
What is TensorFlow? | Introduction to TensorFlow | TensorFlow Tutorial For Be...
Deep learning framework
Top 7 Frameworks for Integration AI in App Development
Tensorflow Ecosystem
Google APAC Machine Learning Expert Day
Deep Learning on Qubole Data Platform
Going deep (learning) with tensor flow and quarkus
Ad

Recently uploaded (20)

PPTX
oil_refinery_comprehensive_20250804084928 (1).pptx
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPTX
Major-Components-ofNKJNNKNKNKNKronment.pptx
PPTX
Introduction to Knowledge Engineering Part 1
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PPTX
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
PPTX
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PPTX
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
PPTX
Business Acumen Training GuidePresentation.pptx
PPTX
IB Computer Science - Internal Assessment.pptx
PPTX
1_Introduction to advance data techniques.pptx
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
PDF
Clinical guidelines as a resource for EBP(1).pdf
PDF
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
PPTX
05. PRACTICAL GUIDE TO MICROSOFT EXCEL.pptx
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
PPTX
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
PDF
Fluorescence-microscope_Botany_detailed content
oil_refinery_comprehensive_20250804084928 (1).pptx
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
Major-Components-ofNKJNNKNKNKNKronment.pptx
Introduction to Knowledge Engineering Part 1
Acceptance and paychological effects of mandatory extra coach I classes.pptx
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
IBA_Chapter_11_Slides_Final_Accessible.pptx
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
Business Acumen Training GuidePresentation.pptx
IB Computer Science - Internal Assessment.pptx
1_Introduction to advance data techniques.pptx
Introduction-to-Cloud-ComputingFinal.pptx
Clinical guidelines as a resource for EBP(1).pdf
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
05. PRACTICAL GUIDE TO MICROSOFT EXCEL.pptx
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
Fluorescence-microscope_Botany_detailed content

Deep learning with TensorFlow

  • 2. • How Am I? • Machine Learning & Deep Networks • What is ML ? • Neural Network Example • What is Deep Learning? • TensorFlow (v1.0) • What is TF? • TF Architecture • TF evolution • TF language features through an example • The Computational Graph • TensorBoard • TF in Google Cloud ML • TF High Level API • TF Serving • TensorFlow Hands-On • TensorFlow Examples • Linear Model • Shallow MNIST • Deep MNIST • ConvNet MNIST Agenda 1
  • 3. How Am I ? • Ndjido Ardo BAR : Data Scientist @ Davidson Consulting UAE • Background : Research In Mathematics • Now: Working in @DU Telecom as a Consultant • Past: • Worked @AXA (Paris): Develop A Credit Scoring Model with H2O • Worked @BearingPoint Hypercube: Did consulting for different companies: • Hypercube (Paris): A web-based Machine Learning Platform • Jonson & Jonson (Florida): Lens Design Process Optimisation (Vistakon) • Keolis: Setup a Big Data Platform and Developed a Fraud Detection Model • And many more … • Co-Founder of a StartUp (MLouma) • Worked @Pasteur Institute: Involved in BioStatistical Research @ndjido 2
  • 5. What Machine Learning? - Machine Learning is a field of Computer Science that aims at giving computers the ability to learn complex patterns without being explicitly programmed. - Compared to Statistical models, ML does not make strong hypothesis on the distribution of the variables in a model. Random Forest Neurale Network K-means Few examples of ML Algorithm 4
  • 6. What Machine Learning? Detailed Example a ML Algorithm: Neural Network Y(real) Y(estimated) Error BACK PROPAGATION FORWARD PROPAGATION 1 2 activation function 5
  • 7. What Machine Learning? Example a ML Algorithm: Neural Network Activation Functions FORWARD PROPAGATION Neurone ErrorOutput loss function 6
  • 8. What Machine Learning? Example a ML Algorithm: Neural Network Error =Output BACK PROPAGATION Layer (L)Layer (L-1) Chain Rule Update (Gradient Descent) learning rate 1 2 7
  • 9. What is Deep Learning ? Deep Learning is one of the field of AI (Artificial Intelligence) using sophisticated techniques to train multi-layers Neural Networks with complex data format without the need to perform Feature Engineering. 8
  • 10. What is Deep Learning ? Why does it even matter ? - New techniques to easier build better Neural Networks: - solutions to vanishing or exploding gradient - Representational learning (source: UBC) 9
  • 11. What is Deep Learning ? Why does it even matter ? Performance Amount of Data Classical Algorithms Deep Learning - Hardware Performances with GPU and distributed computation - Overwhelming and more complex amount of data (Big Data): - sensors data - Video, - Voice - Outperforms classical methods with complex data 10
  • 12. What is Deep Learning ? Basic Deep Learning Architectures Convolutional Network Recurrent Neural Network Recursive Neural Network Deep Belief Network AutoEncoder 11
  • 15. TensorFlow What is TensorFlow ? - An Open Source Machine Learning tool started by the Google Brain Team in 2015 - TF was create to build complex Neural Networks but is general enough to build a wide variety of ML algorithm or computation systems - A library for numerical computation using Data Flow Graphs - TF is highly scalable. It can be used on desktop, mobile devices, and Data centres with both CPU and GPU - TF can be used by Researchers, Data Scientists and Developers. Data Flow Graph This is a Tensor 14
  • 16. TensorFlow TensorFlow Architecture TensorFlow Core Execution System CPU GPU Android IOS … TF supports a lot of front-end API : c++, Python, … 15
  • 17. TensorFlow TensorFlow, the most active ML Open Source tool ! (source: Google Next) ~1000 commits / month 16
  • 18. TensorFlow Features Anatomy of a TF Model: The Babylonian Algorithm 1 2 3 4 5 6 7 8 1 Constant value 2 Type casting -> float32 3 Variable in the Graph 4 Updating a Variable 5 Adding 2 Variables 6 Session Object 7 Initialise All Variables 8 Running the Model 17
  • 19. TensorFlow Features TF Placeholder and Feed Dictionary 1 Placeholder for input value A 2 Feeding the graph with inputs A & B 1 2 Notice there no need for initialisation 18
  • 20. TensorFlow Features TF Computational Graph A TF program performs 2 main steps: 1) Assembling a ”lazy” Graph 2) Running the computation Result After Running in a tf.Session() Computational Graph 19
  • 21. TensorFlow Features TF Variable Scope & TensorBoard Massive deep neural network are notoriously hard to debug and optimise. TensorBoard just make it easier! You can use TensorBoard to visualise your TensorFlow graph, plot quantitative metrics about the execution of your graph, and show additional data like images that pass through it. When TensorBoard is fully configured, it looks like this: Demo with a Linear Regression Decorate TF programs with tf.name_scope 20
  • 22. TensorFlow Features Run TF in Cloud ML Cloud StorageCloud ML setup.py submit to Cloud ML with gcloud ml-engine package uploaded1 2 3 4 4 data fetched train + model stored Demo on Cloud ML 21
  • 23. TensorFlow Features TensorFlow High Level API • Different Level of abstraction for Researchers, Data Scientist and Developers • With ML Toolkit TF is now a serious competition to Scikit-Learn (source: Google Next) 22
  • 24. TensorFlow Features TensorFlow Serving : Serving Pipeline Data TF Cluster TF Model Storage Training + Storage Model #1 Model #2 Model #n … TensorFlow Serving Client Client Client gRPC 23
  • 26. TensorFlow Hands-On . . . 784 = 28 x 28 pixels (.8, .2, 0, 0, 0, 0, 0, 0, 0, 0) (1, 0, 0, 0, 0, 0, 0, 0, 0, 0) Predicted One-hot encoding 0 1 2 3 4 5 6 7 8 9 flattened Shallow MNIST . . . 25
  • 27. 784 = 28 x 28 pixels 0 1 2 3 4 5 6 7 8 9 . . . . . . . . . . . . TensorFlow Hands-On Deep MNIST 200 100 60 30. . . 10 26
  • 28. TensorFlow Hands-On ConvNet MNIST 28 28 28 x 28 x 6 14 x 14 x 12 7 x 7 x 24 200 0 1 2 3 4 5 6 7 8 9 27