SlideShare a Scribd company logo
Artificial Intelligence
for everyone
Understands concepts of
Deep Learning
AI for Good Workshop
March 2019
Session 3
https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Topics in this presentation
Basic conceptual understanding of
Neural Networks, Gradient Descent
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
New way to think from today !
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Represent the same data in a new way
•
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Represent the same data in a new way
•
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Represent the same data in a new way
•
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Find a way to represent the data in a
better way?
Deep learning is === a multistage way to learn data representations.
It’s a simple idea—but, as it turns out, very simple mechanisms, sufficiently scaled, can end up looking like magic.
All this happens with just 1 line of code!
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Just 1 line of code == magic!
Deep learning is === a multistage way to learn data representations.
It’s a simple idea—but, as it turns out, very simple mechanisms, sufficiently scaled, can end up looking like magic.
myModel. fit ( X , Y )
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
All this happens with just 1 line of code!
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
How did the magic happen?
)
)
)
)
(x, y) = load_data()
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Can a neural network automatically represent
the raw data into another way?
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Deep representations learned by a
neural network model
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
representations “learned” automatically
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
A neural network is parameterized by its
weights
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
A loss function measures the quality of the
network’s output
The loss function takes the predictions
of the network and the true target.
and computes a distance score,
capturing how well the network has
done on this specific example
Credits, Deep Learning with Python
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
The loss score is used as a feedback signal to
adjust the weights
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
•
Credits: Luis Serrano
https://www.youtube.com/watch?v=BR9h47Jtqyw
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Teach a computer how to split the data
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Group Activity game to learn
Gradient Descent
•
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
4 Graident descent 1145 game
Credits: Luis Serrano
https://www.youtube.com/watch?v=BR9h47Jtqyw
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Gradient descent
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Credits: Google Machine Learning Crash Course
https://developers.google.com/machine-learning/crash-course/
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Credits: Google Machine Learning Crash Course
https://developers.google.com/machine-learning/crash-course/
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
What should be Learning rate ?
• https://developers.google.com/machine-learning/crash-course/fitter/graph
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Neural network is inspired by biology,
In reality, it just a mathematical function
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Neuron === Perceptron
•
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Switches On/Off a nerve connection
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Switches On/Off a nerve connection
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Simply an weighted average
•
Sum = 3.3
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Then a “activation function”
•
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
•
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
•
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
•
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Multi-Layer Perceptron (MLP)
•
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Deep Neural Network
•
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Design the network architecture
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Design the network architecture
network.add( keras.layers.Dense(512))
network.add( keras.layers.Dense(128))
network.add( keras.layers.Dense(10))
network.add( keras.layers.Dense(512))
network.add( keras.layers.Dense(10))
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Design of Deep Learning experiment
Define problem What is the purpose
Prepare the data
Collect data, spilit data,
vectorize, reshape,
normalize, OHE
Define the network
architecture
architecture
Define loss,
optimizers
Define the metrics,
optimizers, loss function,
and Compile the model
Train the network Train the network
Improve power to
generalize
Evaluate the network,
Hypertune
Test Test, Predict
Deploy Deploy
1
2
3
4
5
6
7
8AIforEveryone.org
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Method: 7 steps to develop your Deep Learning model
1: Define problem
Collect data representing
the purpose
2: Format the data
Spilt data, vectorize, reshape,
normalize, OHE
3: Design the network Design the Neural Network
4: Define loss Think of what to optimize for
5: Train the network
Allow the network to learn
patterns in the data
6: Validate & Improve Power of generalization?
7: Predict Predict
Adjust model’s
capacity to learn
“just the patterns”
Develop model
that overfits
Develop 1st model
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
(trainX, trainY), (testX, testY) = mnist.load_data()
2. Prepare
the data
Spilt data in
training &
testing
Vectortize
as tensors
Reshape Normalize
One Hot
encode
No of training records = 60000
No of test records = 10000
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Multi dimensional Array == Tensor
What_is_size_of_array = myArray.shape
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
• 1D Tensor
• Array
• 2D Tensor
• 2D array
• Matrix
• 3D Tensor
• 3D array
• 4D Tensor
•
• 5D Tensor
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
One Hot Encoding
Data:
[2]
Data after One Hot Encoding:
[[ 0. 0. 1. 0. 0. 0. 0. 0. 0. 0.]]
yNew = to_categorical (y)
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
2. Prepare
the data
Spilt data in
training &
testing
Vectortize
as tensors
Reshape Normalize
One Hot
encode2. Prepare
the data
Spilt data in
training &
testing
Vectortize
as tensors
Reshape Normalize
One Hot
encode
myArray = keras.utils. to_categorical ( aInteger)
Data: [2]
Data after OHE : [[ 0. 0. 1. 0. 0. 0. 0. 0. 0. 0.]]
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
7 easy steps to develop your 1st Deep Learning model
1: Define
problem
Load the collected data,
Visualize it
2: Prepare
the data
Spilt data, vectorize,
reshape, normalize, OHE
3: Define the
network
architecture
Design the Network
4: Define
optimizers
Define the metrics,
optimizers, loss function,
and Compile the model
5: Train the
network
Train the network
6: Validate &
Improve
model
Evaluate the network
7: Predict Predict
Adjust model’s capacity
to learn
“just the patterns”
Develop model that
overfits
Develop 1st model
AIforEveryone.org
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
3. Design the network
AIforEveryone.org
Adjust model’s capacity
to learn
“just the patterns”
Develop model that
overfits
Develop 1st model
Data
RepresentationofData
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
3. Design the network
Adjust model’s capacity
to learn
“just the patterns”
Develop model that
overfits
Develop 1st model
Limit the capacity
so that only the
representations can
be learnt
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
5. Train
4 4 4
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
7. Predict
Hand
drawing
samples
 0
 1
 .
 9
Classifier
Input Predicted output
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
7. Predict
Problem: Users draws a hand drawn gestures , your app predicts it.
predictedResults = network.predict(testXready[1:3])
Predicted Results:
[ 1.35398892e-08 3.91871922e-08 9.99876499e-01 1.22501457e-04
1.77109036e-10 1.30937892e-07 2.99046292e-07 2.58880729e-11
4.58700157e-07 2.09212196e-11]
Ground Truth OHE : [[ 0. 0. 1. 0. 0. 0. 0. 0. 0. 0.]]
Ground Truth : [2]
AIforEveryone.org
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Let’s it together
• App idea: Recognize your hand gesture to
unlock your smartphone (Secure unlock)
• Biz outcome: Recognize hand draw gestures
to unlock your phone
Test accuracy is: 0.9157
#Step 6: Evaluate the network
metrics_test_loss, metrics_test_accuracy = network.evaluate(testXready, testYready)
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Design of Deep Learning experiment
Define problem What is the purpose
Prepare the data
Collect data, spilit data,
vectorize, reshape,
normalize, OHE
Define the network
architecture
architecture
Define loss,
optimizers
Define the metrics,
optimizers, loss function,
and Compile the model
Train the network Train the network
Improve power to
generalize
Evaluate the network,
Hypertune
Test Test, Predict
Deploy Deploy
1
2
3
4
5
6
7
8
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Experiment 2
• MNIST_Predict_with_Dense_and_Tune_Capacity
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
•
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Our inspiration
Friendly approaches :
1) KERAS.io
François Chollet’s
Book on “Deep Learning with Python”
2) Deeplearning.ai (Coursera.org)
Andrew Ng
3) Google Machine Learning Course
https://developers.google.com/machine-learning/crash-course/
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
More inspiration
Excellent Resources
• Stanford cs231 n
http://cs231n.stanford.edu
• MIT Deep Learning
http://introtodeeplearning.com/
https://deeplearning.mit.edu
• IIT Madras
my classes notes with Prof. Anurag (Deep Learning)
Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
Want a Book?
Francois Chollet
Artificial Intelligence Researcher,
Google
ISBN-13: 978-1617294433
Deep Learning with Python
https://www.manning.com/books/deep-learning-with-python
Book Published: December 22, 2017
Check free chapters at Manning Website!

More Related Content

Similar to 2 day Deep Learning Workshop - Session 3

2 day Deep Learning Workshop at Karunya - Session 1
2 day Deep Learning Workshop at Karunya - Session 12 day Deep Learning Workshop at Karunya - Session 1
2 day Deep Learning Workshop at Karunya - Session 1
Rajagopal A
 
Deep Learning: Session 3 : How to succeed
Deep Learning: Session 3 : How to succeedDeep Learning: Session 3 : How to succeed
Deep Learning: Session 3 : How to succeed
Rajagopal A
 
2 day Deep Learning Workshop at Karunya - Session 2
2 day Deep Learning Workshop at Karunya - Session 22 day Deep Learning Workshop at Karunya - Session 2
2 day Deep Learning Workshop at Karunya - Session 2
Rajagopal A
 
Deep Learning Session 1 : bright future for you summary
Deep Learning Session 1 : bright future for you summaryDeep Learning Session 1 : bright future for you summary
Deep Learning Session 1 : bright future for you summary
Rajagopal A
 
Web Marketing Week2
Web Marketing Week2Web Marketing Week2
Web Marketing Week2cghb1210
 
DevLearn 2018 - Designing AR Experiences for Performance Support
DevLearn 2018 -  Designing AR Experiences for Performance SupportDevLearn 2018 -  Designing AR Experiences for Performance Support
DevLearn 2018 - Designing AR Experiences for Performance Support
Chad Udell
 
RSC SE Teaching toolkit no 8 Todaysmeet, QR codes and Slideshare - Jane Macke...
RSC SE Teaching toolkit no 8 Todaysmeet, QR codes and Slideshare - Jane Macke...RSC SE Teaching toolkit no 8 Todaysmeet, QR codes and Slideshare - Jane Macke...
RSC SE Teaching toolkit no 8 Todaysmeet, QR codes and Slideshare - Jane Macke...
Jane Mackenzie
 
Getting SEO done - Why thinking agile is the best SEO skill in 2020 - SEOday ...
Getting SEO done - Why thinking agile is the best SEO skill in 2020 - SEOday ...Getting SEO done - Why thinking agile is the best SEO skill in 2020 - SEOday ...
Getting SEO done - Why thinking agile is the best SEO skill in 2020 - SEOday ...
Charlie Williams
 
#CRODay - User Identification and Psychology: the New Way to Convert in 2015
#CRODay - User Identification and Psychology: the New Way to Convert in 2015#CRODay - User Identification and Psychology: the New Way to Convert in 2015
#CRODay - User Identification and Psychology: the New Way to Convert in 2015
Natzir Turrado
 
Flavours of SEO
Flavours of SEOFlavours of SEO
Flavours of SEO
The Reference
 
Stephen kenwright conversion elite
Stephen kenwright conversion eliteStephen kenwright conversion elite
Stephen kenwright conversion elite
Andy Brown
 
Extreme Google
Extreme GoogleExtreme Google
Extreme Google
mlx
 
Building AI-powered Apps on AWS
Building AI-powered Apps on AWSBuilding AI-powered Apps on AWS
Building AI-powered Apps on AWS
Adrian Hornsby
 
blogging
bloggingblogging
blogging
Harsh Gupta
 
Analytics For SEOs - Mozcation Portsmouth 11/7/12
Analytics For SEOs - Mozcation Portsmouth 11/7/12Analytics For SEOs - Mozcation Portsmouth 11/7/12
Analytics For SEOs - Mozcation Portsmouth 11/7/12
Evolving SEO
 
How to Create Fun User Experience by Shutterstock Dir of Product
How to Create Fun User Experience by Shutterstock Dir of ProductHow to Create Fun User Experience by Shutterstock Dir of Product
How to Create Fun User Experience by Shutterstock Dir of Product
Product School
 
Using the Google Analytics API to make most popular pages widgets for your we...
Using the Google Analytics API to make most popular pages widgets for your we...Using the Google Analytics API to make most popular pages widgets for your we...
Using the Google Analytics API to make most popular pages widgets for your we...
Dean Peters
 
New Technologies for the 21st Century Secretary
New Technologies for the 21st Century SecretaryNew Technologies for the 21st Century Secretary
New Technologies for the 21st Century Secretary
Rafael Scapin, Ph.D.
 
How to Master SEO in 2017
How to Master SEO in 2017How to Master SEO in 2017
How to Master SEO in 2017
Digital Vidya
 
Learning How to Search and Evaluate Information
Learning How to Search and Evaluate InformationLearning How to Search and Evaluate Information
Learning How to Search and Evaluate Information
Rafael Scapin, Ph.D.
 

Similar to 2 day Deep Learning Workshop - Session 3 (20)

2 day Deep Learning Workshop at Karunya - Session 1
2 day Deep Learning Workshop at Karunya - Session 12 day Deep Learning Workshop at Karunya - Session 1
2 day Deep Learning Workshop at Karunya - Session 1
 
Deep Learning: Session 3 : How to succeed
Deep Learning: Session 3 : How to succeedDeep Learning: Session 3 : How to succeed
Deep Learning: Session 3 : How to succeed
 
2 day Deep Learning Workshop at Karunya - Session 2
2 day Deep Learning Workshop at Karunya - Session 22 day Deep Learning Workshop at Karunya - Session 2
2 day Deep Learning Workshop at Karunya - Session 2
 
Deep Learning Session 1 : bright future for you summary
Deep Learning Session 1 : bright future for you summaryDeep Learning Session 1 : bright future for you summary
Deep Learning Session 1 : bright future for you summary
 
Web Marketing Week2
Web Marketing Week2Web Marketing Week2
Web Marketing Week2
 
DevLearn 2018 - Designing AR Experiences for Performance Support
DevLearn 2018 -  Designing AR Experiences for Performance SupportDevLearn 2018 -  Designing AR Experiences for Performance Support
DevLearn 2018 - Designing AR Experiences for Performance Support
 
RSC SE Teaching toolkit no 8 Todaysmeet, QR codes and Slideshare - Jane Macke...
RSC SE Teaching toolkit no 8 Todaysmeet, QR codes and Slideshare - Jane Macke...RSC SE Teaching toolkit no 8 Todaysmeet, QR codes and Slideshare - Jane Macke...
RSC SE Teaching toolkit no 8 Todaysmeet, QR codes and Slideshare - Jane Macke...
 
Getting SEO done - Why thinking agile is the best SEO skill in 2020 - SEOday ...
Getting SEO done - Why thinking agile is the best SEO skill in 2020 - SEOday ...Getting SEO done - Why thinking agile is the best SEO skill in 2020 - SEOday ...
Getting SEO done - Why thinking agile is the best SEO skill in 2020 - SEOday ...
 
#CRODay - User Identification and Psychology: the New Way to Convert in 2015
#CRODay - User Identification and Psychology: the New Way to Convert in 2015#CRODay - User Identification and Psychology: the New Way to Convert in 2015
#CRODay - User Identification and Psychology: the New Way to Convert in 2015
 
Flavours of SEO
Flavours of SEOFlavours of SEO
Flavours of SEO
 
Stephen kenwright conversion elite
Stephen kenwright conversion eliteStephen kenwright conversion elite
Stephen kenwright conversion elite
 
Extreme Google
Extreme GoogleExtreme Google
Extreme Google
 
Building AI-powered Apps on AWS
Building AI-powered Apps on AWSBuilding AI-powered Apps on AWS
Building AI-powered Apps on AWS
 
blogging
bloggingblogging
blogging
 
Analytics For SEOs - Mozcation Portsmouth 11/7/12
Analytics For SEOs - Mozcation Portsmouth 11/7/12Analytics For SEOs - Mozcation Portsmouth 11/7/12
Analytics For SEOs - Mozcation Portsmouth 11/7/12
 
How to Create Fun User Experience by Shutterstock Dir of Product
How to Create Fun User Experience by Shutterstock Dir of ProductHow to Create Fun User Experience by Shutterstock Dir of Product
How to Create Fun User Experience by Shutterstock Dir of Product
 
Using the Google Analytics API to make most popular pages widgets for your we...
Using the Google Analytics API to make most popular pages widgets for your we...Using the Google Analytics API to make most popular pages widgets for your we...
Using the Google Analytics API to make most popular pages widgets for your we...
 
New Technologies for the 21st Century Secretary
New Technologies for the 21st Century SecretaryNew Technologies for the 21st Century Secretary
New Technologies for the 21st Century Secretary
 
How to Master SEO in 2017
How to Master SEO in 2017How to Master SEO in 2017
How to Master SEO in 2017
 
Learning How to Search and Evaluate Information
Learning How to Search and Evaluate InformationLearning How to Search and Evaluate Information
Learning How to Search and Evaluate Information
 

Recently uploaded

Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 

Recently uploaded (20)

Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 

2 day Deep Learning Workshop - Session 3

  • 1. Artificial Intelligence for everyone Understands concepts of Deep Learning AI for Good Workshop March 2019 Session 3 https://sites.google.com/view/AIforEveryone
  • 2. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Topics in this presentation Basic conceptual understanding of Neural Networks, Gradient Descent
  • 3. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone New way to think from today !
  • 4. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
  • 5. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Represent the same data in a new way •
  • 6. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Represent the same data in a new way •
  • 7. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Represent the same data in a new way •
  • 8. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Find a way to represent the data in a better way? Deep learning is === a multistage way to learn data representations. It’s a simple idea—but, as it turns out, very simple mechanisms, sufficiently scaled, can end up looking like magic. All this happens with just 1 line of code!
  • 9. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Just 1 line of code == magic! Deep learning is === a multistage way to learn data representations. It’s a simple idea—but, as it turns out, very simple mechanisms, sufficiently scaled, can end up looking like magic. myModel. fit ( X , Y )
  • 10. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone All this happens with just 1 line of code!
  • 11. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone How did the magic happen? ) ) ) ) (x, y) = load_data()
  • 12. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Can a neural network automatically represent the raw data into another way?
  • 13. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Deep representations learned by a neural network model
  • 14. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone representations “learned” automatically
  • 15. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone A neural network is parameterized by its weights
  • 16. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone A loss function measures the quality of the network’s output The loss function takes the predictions of the network and the true target. and computes a distance score, capturing how well the network has done on this specific example Credits, Deep Learning with Python
  • 17. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone The loss score is used as a feedback signal to adjust the weights
  • 18. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone • Credits: Luis Serrano https://www.youtube.com/watch?v=BR9h47Jtqyw
  • 19. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
  • 20. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Teach a computer how to split the data
  • 21. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
  • 22. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
  • 23. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
  • 24. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Group Activity game to learn Gradient Descent •
  • 25. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
  • 26. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone 4 Graident descent 1145 game Credits: Luis Serrano https://www.youtube.com/watch?v=BR9h47Jtqyw
  • 27. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
  • 28. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Gradient descent
  • 29. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
  • 30. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Credits: Google Machine Learning Crash Course https://developers.google.com/machine-learning/crash-course/
  • 31. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
  • 32. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
  • 33. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Credits: Google Machine Learning Crash Course https://developers.google.com/machine-learning/crash-course/
  • 34. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
  • 35. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
  • 36. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
  • 37. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
  • 38. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
  • 39. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone What should be Learning rate ? • https://developers.google.com/machine-learning/crash-course/fitter/graph
  • 40. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Neural network is inspired by biology, In reality, it just a mathematical function
  • 41. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Neuron === Perceptron •
  • 42. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Switches On/Off a nerve connection
  • 43. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Switches On/Off a nerve connection
  • 44. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Simply an weighted average • Sum = 3.3
  • 45. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Then a “activation function” •
  • 46. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone •
  • 47. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone •
  • 48. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone •
  • 49. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Multi-Layer Perceptron (MLP) •
  • 50. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Deep Neural Network •
  • 51. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Design the network architecture
  • 52. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Design the network architecture network.add( keras.layers.Dense(512)) network.add( keras.layers.Dense(128)) network.add( keras.layers.Dense(10)) network.add( keras.layers.Dense(512)) network.add( keras.layers.Dense(10))
  • 53. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
  • 54. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
  • 55. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
  • 56. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
  • 57. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
  • 58. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
  • 59. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
  • 60. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Design of Deep Learning experiment Define problem What is the purpose Prepare the data Collect data, spilit data, vectorize, reshape, normalize, OHE Define the network architecture architecture Define loss, optimizers Define the metrics, optimizers, loss function, and Compile the model Train the network Train the network Improve power to generalize Evaluate the network, Hypertune Test Test, Predict Deploy Deploy 1 2 3 4 5 6 7 8AIforEveryone.org
  • 61. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Method: 7 steps to develop your Deep Learning model 1: Define problem Collect data representing the purpose 2: Format the data Spilt data, vectorize, reshape, normalize, OHE 3: Design the network Design the Neural Network 4: Define loss Think of what to optimize for 5: Train the network Allow the network to learn patterns in the data 6: Validate & Improve Power of generalization? 7: Predict Predict Adjust model’s capacity to learn “just the patterns” Develop model that overfits Develop 1st model
  • 62. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone (trainX, trainY), (testX, testY) = mnist.load_data() 2. Prepare the data Spilt data in training & testing Vectortize as tensors Reshape Normalize One Hot encode No of training records = 60000 No of test records = 10000
  • 63. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Multi dimensional Array == Tensor What_is_size_of_array = myArray.shape
  • 64. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone • 1D Tensor • Array • 2D Tensor • 2D array • Matrix • 3D Tensor • 3D array • 4D Tensor • • 5D Tensor
  • 65. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone One Hot Encoding Data: [2] Data after One Hot Encoding: [[ 0. 0. 1. 0. 0. 0. 0. 0. 0. 0.]] yNew = to_categorical (y)
  • 66. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone 2. Prepare the data Spilt data in training & testing Vectortize as tensors Reshape Normalize One Hot encode2. Prepare the data Spilt data in training & testing Vectortize as tensors Reshape Normalize One Hot encode myArray = keras.utils. to_categorical ( aInteger) Data: [2] Data after OHE : [[ 0. 0. 1. 0. 0. 0. 0. 0. 0. 0.]]
  • 67. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone 7 easy steps to develop your 1st Deep Learning model 1: Define problem Load the collected data, Visualize it 2: Prepare the data Spilt data, vectorize, reshape, normalize, OHE 3: Define the network architecture Design the Network 4: Define optimizers Define the metrics, optimizers, loss function, and Compile the model 5: Train the network Train the network 6: Validate & Improve model Evaluate the network 7: Predict Predict Adjust model’s capacity to learn “just the patterns” Develop model that overfits Develop 1st model AIforEveryone.org
  • 68. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
  • 69. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone 3. Design the network AIforEveryone.org Adjust model’s capacity to learn “just the patterns” Develop model that overfits Develop 1st model Data RepresentationofData
  • 70. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone 3. Design the network Adjust model’s capacity to learn “just the patterns” Develop model that overfits Develop 1st model Limit the capacity so that only the representations can be learnt
  • 71. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone 5. Train 4 4 4
  • 72. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
  • 73. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone 7. Predict Hand drawing samples  0  1  .  9 Classifier Input Predicted output
  • 74. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone 7. Predict Problem: Users draws a hand drawn gestures , your app predicts it. predictedResults = network.predict(testXready[1:3]) Predicted Results: [ 1.35398892e-08 3.91871922e-08 9.99876499e-01 1.22501457e-04 1.77109036e-10 1.30937892e-07 2.99046292e-07 2.58880729e-11 4.58700157e-07 2.09212196e-11] Ground Truth OHE : [[ 0. 0. 1. 0. 0. 0. 0. 0. 0. 0.]] Ground Truth : [2] AIforEveryone.org
  • 75. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Let’s it together • App idea: Recognize your hand gesture to unlock your smartphone (Secure unlock) • Biz outcome: Recognize hand draw gestures to unlock your phone Test accuracy is: 0.9157 #Step 6: Evaluate the network metrics_test_loss, metrics_test_accuracy = network.evaluate(testXready, testYready)
  • 76. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Design of Deep Learning experiment Define problem What is the purpose Prepare the data Collect data, spilit data, vectorize, reshape, normalize, OHE Define the network architecture architecture Define loss, optimizers Define the metrics, optimizers, loss function, and Compile the model Train the network Train the network Improve power to generalize Evaluate the network, Hypertune Test Test, Predict Deploy Deploy 1 2 3 4 5 6 7 8
  • 77. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Experiment 2 • MNIST_Predict_with_Dense_and_Tune_Capacity
  • 78. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone •
  • 79. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone
  • 80. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Our inspiration Friendly approaches : 1) KERAS.io François Chollet’s Book on “Deep Learning with Python” 2) Deeplearning.ai (Coursera.org) Andrew Ng 3) Google Machine Learning Course https://developers.google.com/machine-learning/crash-course/
  • 81. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone More inspiration Excellent Resources • Stanford cs231 n http://cs231n.stanford.edu • MIT Deep Learning http://introtodeeplearning.com/ https://deeplearning.mit.edu • IIT Madras my classes notes with Prof. Anurag (Deep Learning)
  • 82. Acknowledgments & Credits are mentioned to inspirational resources presented in the end of presentation. For more like this, https://sites.google.com/view/AIforEveryone Want a Book? Francois Chollet Artificial Intelligence Researcher, Google ISBN-13: 978-1617294433 Deep Learning with Python https://www.manning.com/books/deep-learning-with-python Book Published: December 22, 2017 Check free chapters at Manning Website!