SlideShare a Scribd company logo
1 of 33
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Agenda
What is Keras?
Contributors for Keras
Keras Models
Implementing a Neural Network
Use-Case
Summary
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
What Is Keras?
Official high-level API of TensorFlow!
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
What Is Keras?
Keras - Modular
• Building models is as simple
as stacking layers and
connecting graphs.
Open Source
• Actively developed by contributors across
the world!
• Good amount of documentation
Deep Learning Library
• High-level Neural Network API
• Runs on top of TensorFlow,
Theano or CNTK.
High Performance
• High performing API used to
specify and train differentiable
programs.
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Who Makes Keras?
Who are the contributors and backers?
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Who Makes Keras?
4800+ Contributors
250,000
Keras developers
> 2x
Year-on-year growth
Start-ups
Good amount of traction
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Who Uses Keras?
Let’s check out the industry traction!
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Industry Traction
And more..!
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
What Makes Keras Special?
Highlights from one of the top Deep Learning libraries!
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
What Makes Keras Special?
Large adoption in the industry
Multi-backend, multi-platform
Focus on user experience
Research community4
Easy to grasp all concepts5
Fast prototyping6
Runs seamlessly on CPU and GPU7
Freedom to design any architecture8
Simple to get started9
Easy production of models10
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Keras User Experience
API Designed for Humans
• Keras follows best practices for
reducing cognitive load
• Offers consistent and simple APIs
Not Designed for Machines
• Minimizes number of user actions required
for common use cases
• Provides clear feedback upon user error
Easy to Learn & Easy to Use
• More productive
• Try more ideas than your competition
• Helps you win competitions
High Flexibility
• Keras integrates with lower-level
Deep Learning languages like
TensorFlow
• Implement anything which was
built in base language.
1
3
2
4
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Multi-Backend & Multi-Platform
01 02 03
Development
Develop in Python, R
Run the code with:
• TensorFlow
• CNTK
• Theano
• MXNet
• CPU
• NVIDIA GPU
• AMD GPU
• TPU
• Etc..
Producing Models
• TF-Serving
• GPU acceleration
(WebKeras, Keras.js)
• Android (TF, TF Lite)
• iOS (Native CoreML)
• Raspberry Pi
{code}
Run The Code
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Working Principle Of Keras
Let’s take a quick look at the basics of Keras’ backend
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Working Principle – Backend
• e = c*d where, “c = a+b” and “d = b+1”
• So, e = (a+b)*(b+1)
• Here “a” ,“b” are inputs
01
02
03
04
Expressing complex expressions as a
combination of simple operations
Useful for calculating derivatives
during backpropagation
Easier to implement distributed
computation
Just specify the inputs, outputs and
make sure the graph is connected
Computational Graphs
As easy as that!
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Keras Models
There are 2 major models that Keras offers!
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Keras Models
Sequential Model
• Linear stack of layers
• Useful for building simple models
• Simple classification network
• Encoder – Decoder models
• The model we all know and love!
• Treat each layer as object that feeds into the next.
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Keras Models
Functional Model
• Like playing with Lego bricks
• Good for 95% of use cases
Multi-input, multi-output and arbitrary static graph
topologies
Multi – input and Multi – output models
Complex models which forks into 2 or more
branches
Models with shared (Weights) layers
01
02
03
04
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Keras Models
Functional Model (Domain Adaption)
• Train on Domain A and Test on Domain B
• Results in poor performance on test set
• The data are from different domains
We will be looking at a very interesting use case
using the functional model in the upcoming slides
Solution: Adapt the model to both the domains
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Understanding Execution
There are 2 types of execution!
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Execution – Two Types
Deferred (symbolic)
• We use Python to build a
computation graph first
• The compiled graph then
gets executed later
Eager ( imperative)
• Here, the Python runtime
is the execution runtime
• It is similar to execution
with Numpy
• Symbolic tensors don’t have a value in the Python code (yet)
• Eager tensors have a value in the Python code
• With eager execution, value-dependent dynamic topologies
(tree-RNNs) can be used.
On the whole
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Implementing a Neural Network
There are 5 major steps to implement our own Neural Network with Keras!
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Implementing A Neural Network
1. Prepare Input
• Preparing the input and
specify the input dimension
(size)
• Images, videos, text and audio
2. Define the ANN Model
• Define the model architecture and
build the computational graph
• Sequential or Functional Style
• MLP, CNN, RNN 3. Optimizers
• Specify the optimizer and configure
the learning process
• SGD, RMSprop, Adam
5. Train and Evaluate Model
• Train the model based on the
training data
• Test the model on the dataset
with the testing data
4. Loss Function
• Specify the Inputs, Outputs of the
computational graph (model) and
the Loss function
• MSE, Cross Entropy, Hinge
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Use-Case With Keras
Let’s check out an interesting Wine Classifier use-case!
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Use Case – Problem Statement
“Predicting the price of wine with the Keras Functional API and TensorFlow”
Building a wide and deep network using Keras (tf.Keras)
to predict the price of wine from its description
Predict the price of a bottle of wine
just from its description and variety?
• This problem is well suited for wide & deep learning
• It involves text input and there isn’t any correlation
between a wine’s description and its price
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Use Case – Model
A good use-case for the Functional API is implementing a
wide and deep network in Keras!
A lot of Keras models are built using the Sequential model API
BUT Let’s try to solve our use-case with the Functional API
The Sequential API is the best way to get started with Keras
Because it lets you easily define models as a stack of layers
The Functional API allows for more flexibility and is best
suited for models with multiple inputs or combined models
Wide models are models with
sparse feature vectors or
vectors with mostly zero values
Multi-layer deep networks
do well on tasks like image
or speech recognition
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Use Case – Dataset
DATASET
Country1
2 Description
3 Designation
4 Points
5 Price
6 Region_1
Region_27
8 Taster Name
9
Taster Twitter
Handle
10 Title
Variety11
Winery12
The overall goal is to create a model that
can identify the variety, winery and
location of a wine based on a description
This dataset offers some great
opportunities for sentiment analysis
and other text related predictive models
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Use Case – Sample
Description:
• Powerful vanilla scents rise from the glass, but the fruit, even in this difficult vintage, comes out
immediately.
• It’s tart and sharp, with a strong herbal component, and the wine snaps into focus quickly with fruit, acid,
tannin, herb and vanilla in equal proportion.
• Firm and tight, still quite young, this wine needs decanting and/or further bottle age to show its best.
Variety: Pinot Noir
Prediction:
Price — $45
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Use Case – Prerequisites
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Use Case – Prerequisites
Here are all the imports we’ll need to build this model!
Test presence of TensorFlow by printing the version
Download the data and convert it to a Pandas Data Frame
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Use Case – Let’s See Code!
Google Colaboratory
AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
Session In A Minute
What is Keras? Contributors Specialty of Keras
Implementing a Neural Network Use-Case ImplementationKeras Models
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Keras Tutorial For Beginners | Creating Deep Learning Models Using Keras In Python | Edureka

More Related Content

What's hot

What is TensorFlow? | Introduction to TensorFlow | TensorFlow Tutorial For Be...
What is TensorFlow? | Introduction to TensorFlow | TensorFlow Tutorial For Be...What is TensorFlow? | Introduction to TensorFlow | TensorFlow Tutorial For Be...
What is TensorFlow? | Introduction to TensorFlow | TensorFlow Tutorial For Be...Simplilearn
 
Introduction to TensorFlow 2.0
Introduction to TensorFlow 2.0Introduction to TensorFlow 2.0
Introduction to TensorFlow 2.0Databricks
 
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...Simplilearn
 
An introduction to Deep Learning
An introduction to Deep LearningAn introduction to Deep Learning
An introduction to Deep LearningJulien SIMON
 
Deep Learning With Python Tutorial | Edureka
Deep Learning With Python Tutorial | EdurekaDeep Learning With Python Tutorial | Edureka
Deep Learning With Python Tutorial | EdurekaEdureka!
 
Keras: Deep Learning Library for Python
Keras: Deep Learning Library for PythonKeras: Deep Learning Library for Python
Keras: Deep Learning Library for PythonRafi Khan
 
Activation functions and Training Algorithms for Deep Neural network
Activation functions and Training Algorithms for Deep Neural networkActivation functions and Training Algorithms for Deep Neural network
Activation functions and Training Algorithms for Deep Neural networkGayatri Khanvilkar
 
Deep learning with keras
Deep learning with kerasDeep learning with keras
Deep learning with kerasMOHITKUMAR1379
 
Deep Learning Tutorial | Deep Learning Tutorial For Beginners | What Is Deep ...
Deep Learning Tutorial | Deep Learning Tutorial For Beginners | What Is Deep ...Deep Learning Tutorial | Deep Learning Tutorial For Beginners | What Is Deep ...
Deep Learning Tutorial | Deep Learning Tutorial For Beginners | What Is Deep ...Simplilearn
 
Training Neural Networks
Training Neural NetworksTraining Neural Networks
Training Neural NetworksDatabricks
 
Deep Learning With Neural Networks
Deep Learning With Neural NetworksDeep Learning With Neural Networks
Deep Learning With Neural NetworksAniket Maurya
 
Introduction to object detection
Introduction to object detectionIntroduction to object detection
Introduction to object detectionBrodmann17
 
Image classification using cnn
Image classification using cnnImage classification using cnn
Image classification using cnnSumeraHangi
 
Deep learning - A Visual Introduction
Deep learning - A Visual IntroductionDeep learning - A Visual Introduction
Deep learning - A Visual IntroductionLukas Masuch
 
TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...
TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...
TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...Simplilearn
 
Applications in Machine Learning
Applications in Machine LearningApplications in Machine Learning
Applications in Machine LearningJoel Graff
 

What's hot (20)

What is TensorFlow? | Introduction to TensorFlow | TensorFlow Tutorial For Be...
What is TensorFlow? | Introduction to TensorFlow | TensorFlow Tutorial For Be...What is TensorFlow? | Introduction to TensorFlow | TensorFlow Tutorial For Be...
What is TensorFlow? | Introduction to TensorFlow | TensorFlow Tutorial For Be...
 
Introduction to TensorFlow 2.0
Introduction to TensorFlow 2.0Introduction to TensorFlow 2.0
Introduction to TensorFlow 2.0
 
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
 
An introduction to Deep Learning
An introduction to Deep LearningAn introduction to Deep Learning
An introduction to Deep Learning
 
Deep Learning With Python Tutorial | Edureka
Deep Learning With Python Tutorial | EdurekaDeep Learning With Python Tutorial | Edureka
Deep Learning With Python Tutorial | Edureka
 
Activation function
Activation functionActivation function
Activation function
 
Keras: Deep Learning Library for Python
Keras: Deep Learning Library for PythonKeras: Deep Learning Library for Python
Keras: Deep Learning Library for Python
 
Activation functions and Training Algorithms for Deep Neural network
Activation functions and Training Algorithms for Deep Neural networkActivation functions and Training Algorithms for Deep Neural network
Activation functions and Training Algorithms for Deep Neural network
 
Deep learning with keras
Deep learning with kerasDeep learning with keras
Deep learning with keras
 
Image captioning
Image captioningImage captioning
Image captioning
 
Deep Learning Tutorial | Deep Learning Tutorial For Beginners | What Is Deep ...
Deep Learning Tutorial | Deep Learning Tutorial For Beginners | What Is Deep ...Deep Learning Tutorial | Deep Learning Tutorial For Beginners | What Is Deep ...
Deep Learning Tutorial | Deep Learning Tutorial For Beginners | What Is Deep ...
 
Training Neural Networks
Training Neural NetworksTraining Neural Networks
Training Neural Networks
 
Deep Learning With Neural Networks
Deep Learning With Neural NetworksDeep Learning With Neural Networks
Deep Learning With Neural Networks
 
Deep learning
Deep learningDeep learning
Deep learning
 
Introduction to object detection
Introduction to object detectionIntroduction to object detection
Introduction to object detection
 
Image classification using cnn
Image classification using cnnImage classification using cnn
Image classification using cnn
 
Deep learning - A Visual Introduction
Deep learning - A Visual IntroductionDeep learning - A Visual Introduction
Deep learning - A Visual Introduction
 
K - Nearest neighbor ( KNN )
K - Nearest neighbor  ( KNN )K - Nearest neighbor  ( KNN )
K - Nearest neighbor ( KNN )
 
TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...
TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...
TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...
 
Applications in Machine Learning
Applications in Machine LearningApplications in Machine Learning
Applications in Machine Learning
 

Similar to Keras Tutorial For Beginners | Creating Deep Learning Models Using Keras In Python | Edureka

Top 8 Deep Learning Frameworks | Which Deep Learning Framework You Should Lea...
Top 8 Deep Learning Frameworks | Which Deep Learning Framework You Should Lea...Top 8 Deep Learning Frameworks | Which Deep Learning Framework You Should Lea...
Top 8 Deep Learning Frameworks | Which Deep Learning Framework You Should Lea...Edureka!
 
TensorFlow meetup: Keras - Pytorch - TensorFlow.js
TensorFlow meetup: Keras - Pytorch - TensorFlow.jsTensorFlow meetup: Keras - Pytorch - TensorFlow.js
TensorFlow meetup: Keras - Pytorch - TensorFlow.jsStijn Decubber
 
Leveraging NLP and Deep Learning for Document Recommendations in the Cloud
Leveraging NLP and Deep Learning for Document Recommendations in the CloudLeveraging NLP and Deep Learning for Document Recommendations in the Cloud
Leveraging NLP and Deep Learning for Document Recommendations in the CloudDatabricks
 
Austin,TX Meetup presentation tensorflow final oct 26 2017
Austin,TX Meetup presentation tensorflow final oct 26 2017Austin,TX Meetup presentation tensorflow final oct 26 2017
Austin,TX Meetup presentation tensorflow final oct 26 2017Clarisse Hedglin
 
Deep Learning on Qubole Data Platform
Deep Learning on Qubole Data PlatformDeep Learning on Qubole Data Platform
Deep Learning on Qubole Data PlatformShivaji Dutta
 
Scalable Deep Learning Platform On Spark In Baidu
Scalable Deep Learning Platform On Spark In BaiduScalable Deep Learning Platform On Spark In Baidu
Scalable Deep Learning Platform On Spark In BaiduJen Aman
 
A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, and Deep Learnin...
A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, and Deep Learnin...A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, and Deep Learnin...
A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, and Deep Learnin...Databricks
 
Data Con LA 2018 - A Tale of DL Frameworks: TensorFlow, Keras, & Deep Learnin...
Data Con LA 2018 - A Tale of DL Frameworks: TensorFlow, Keras, & Deep Learnin...Data Con LA 2018 - A Tale of DL Frameworks: TensorFlow, Keras, & Deep Learnin...
Data Con LA 2018 - A Tale of DL Frameworks: TensorFlow, Keras, & Deep Learnin...Data Con LA
 
A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, & Deep Learning ...
A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, & Deep Learning ...A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, & Deep Learning ...
A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, & Deep Learning ...Databricks
 
NLP and Deep Learning for non_experts
NLP and Deep Learning for non_expertsNLP and Deep Learning for non_experts
NLP and Deep Learning for non_expertsSanghamitra Deb
 
PyTorch vs TensorFlow: The Force Is Strong With Which One? | Which One You Sh...
PyTorch vs TensorFlow: The Force Is Strong With Which One? | Which One You Sh...PyTorch vs TensorFlow: The Force Is Strong With Which One? | Which One You Sh...
PyTorch vs TensorFlow: The Force Is Strong With Which One? | Which One You Sh...Edureka!
 
Setting up custom machine learning environments on AWS - AIM204 - Chicago AWS...
Setting up custom machine learning environments on AWS - AIM204 - Chicago AWS...Setting up custom machine learning environments on AWS - AIM204 - Chicago AWS...
Setting up custom machine learning environments on AWS - AIM204 - Chicago AWS...Amazon Web Services
 
Introduction to Designing and Building Big Data Applications
Introduction to Designing and Building Big Data ApplicationsIntroduction to Designing and Building Big Data Applications
Introduction to Designing and Building Big Data ApplicationsCloudera, Inc.
 
NoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQL
NoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQLNoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQL
NoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQLAndrew Morgan
 
No BS Guide to Deep Learning in the Enterprise
No BS Guide to Deep Learning in the EnterpriseNo BS Guide to Deep Learning in the Enterprise
No BS Guide to Deep Learning in the EnterpriseJesus Rodriguez
 
IBM Developer Model Asset eXchange
IBM Developer Model Asset eXchangeIBM Developer Model Asset eXchange
IBM Developer Model Asset eXchangeNick Pentreath
 
IBM Developer Model Asset eXchange - Deep Learning for Everyone
IBM Developer Model Asset eXchange - Deep Learning for EveryoneIBM Developer Model Asset eXchange - Deep Learning for Everyone
IBM Developer Model Asset eXchange - Deep Learning for EveryoneNick Pentreath
 

Similar to Keras Tutorial For Beginners | Creating Deep Learning Models Using Keras In Python | Edureka (20)

Top 8 Deep Learning Frameworks | Which Deep Learning Framework You Should Lea...
Top 8 Deep Learning Frameworks | Which Deep Learning Framework You Should Lea...Top 8 Deep Learning Frameworks | Which Deep Learning Framework You Should Lea...
Top 8 Deep Learning Frameworks | Which Deep Learning Framework You Should Lea...
 
TensorFlow meetup: Keras - Pytorch - TensorFlow.js
TensorFlow meetup: Keras - Pytorch - TensorFlow.jsTensorFlow meetup: Keras - Pytorch - TensorFlow.js
TensorFlow meetup: Keras - Pytorch - TensorFlow.js
 
Deep Domain
Deep DomainDeep Domain
Deep Domain
 
Amazon Deep Learning
Amazon Deep LearningAmazon Deep Learning
Amazon Deep Learning
 
Leveraging NLP and Deep Learning for Document Recommendations in the Cloud
Leveraging NLP and Deep Learning for Document Recommendations in the CloudLeveraging NLP and Deep Learning for Document Recommendations in the Cloud
Leveraging NLP and Deep Learning for Document Recommendations in the Cloud
 
Austin,TX Meetup presentation tensorflow final oct 26 2017
Austin,TX Meetup presentation tensorflow final oct 26 2017Austin,TX Meetup presentation tensorflow final oct 26 2017
Austin,TX Meetup presentation tensorflow final oct 26 2017
 
Deep Learning on Qubole Data Platform
Deep Learning on Qubole Data PlatformDeep Learning on Qubole Data Platform
Deep Learning on Qubole Data Platform
 
Scalable Deep Learning Platform On Spark In Baidu
Scalable Deep Learning Platform On Spark In BaiduScalable Deep Learning Platform On Spark In Baidu
Scalable Deep Learning Platform On Spark In Baidu
 
Paddle_Spark_Summit
Paddle_Spark_SummitPaddle_Spark_Summit
Paddle_Spark_Summit
 
A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, and Deep Learnin...
A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, and Deep Learnin...A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, and Deep Learnin...
A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, and Deep Learnin...
 
Data Con LA 2018 - A Tale of DL Frameworks: TensorFlow, Keras, & Deep Learnin...
Data Con LA 2018 - A Tale of DL Frameworks: TensorFlow, Keras, & Deep Learnin...Data Con LA 2018 - A Tale of DL Frameworks: TensorFlow, Keras, & Deep Learnin...
Data Con LA 2018 - A Tale of DL Frameworks: TensorFlow, Keras, & Deep Learnin...
 
A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, & Deep Learning ...
A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, & Deep Learning ...A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, & Deep Learning ...
A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, & Deep Learning ...
 
NLP and Deep Learning for non_experts
NLP and Deep Learning for non_expertsNLP and Deep Learning for non_experts
NLP and Deep Learning for non_experts
 
PyTorch vs TensorFlow: The Force Is Strong With Which One? | Which One You Sh...
PyTorch vs TensorFlow: The Force Is Strong With Which One? | Which One You Sh...PyTorch vs TensorFlow: The Force Is Strong With Which One? | Which One You Sh...
PyTorch vs TensorFlow: The Force Is Strong With Which One? | Which One You Sh...
 
Setting up custom machine learning environments on AWS - AIM204 - Chicago AWS...
Setting up custom machine learning environments on AWS - AIM204 - Chicago AWS...Setting up custom machine learning environments on AWS - AIM204 - Chicago AWS...
Setting up custom machine learning environments on AWS - AIM204 - Chicago AWS...
 
Introduction to Designing and Building Big Data Applications
Introduction to Designing and Building Big Data ApplicationsIntroduction to Designing and Building Big Data Applications
Introduction to Designing and Building Big Data Applications
 
NoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQL
NoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQLNoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQL
NoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQL
 
No BS Guide to Deep Learning in the Enterprise
No BS Guide to Deep Learning in the EnterpriseNo BS Guide to Deep Learning in the Enterprise
No BS Guide to Deep Learning in the Enterprise
 
IBM Developer Model Asset eXchange
IBM Developer Model Asset eXchangeIBM Developer Model Asset eXchange
IBM Developer Model Asset eXchange
 
IBM Developer Model Asset eXchange - Deep Learning for Everyone
IBM Developer Model Asset eXchange - Deep Learning for EveryoneIBM Developer Model Asset eXchange - Deep Learning for Everyone
IBM Developer Model Asset eXchange - Deep Learning for Everyone
 

More from Edureka!

What to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaWhat to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaEdureka!
 
Top 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaTop 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaEdureka!
 
Top 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaTop 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaEdureka!
 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaEdureka!
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaEdureka!
 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaTop 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaEdureka!
 
Top Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaTop Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaEdureka!
 
Linux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaLinux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaEdureka!
 
How to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaHow to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaEdureka!
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaEdureka!
 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | EdurekaEdureka!
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEdureka!
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEdureka!
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaEdureka!
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaEdureka!
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaEdureka!
 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Edureka!
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaA star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaEdureka!
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaEdureka!
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | EdurekaEdureka!
 

More from Edureka! (20)

What to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaWhat to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | Edureka
 
Top 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaTop 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
 
Top 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaTop 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | Edureka
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | Edureka
 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaTop 5 PMP Certifications | Edureka
Top 5 PMP Certifications | Edureka
 
Top Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaTop Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | Edureka
 
Linux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaLinux Mint Tutorial | Edureka
Linux Mint Tutorial | Edureka
 
How to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaHow to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| Edureka
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | Edureka
 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | Edureka
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | Edureka
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | Edureka
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | Edureka
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | Edureka
 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaA star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | Edureka
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | Edureka
 

Recently uploaded

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 

Recently uploaded (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 

Keras Tutorial For Beginners | Creating Deep Learning Models Using Keras In Python | Edureka

  • 1. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow
  • 2. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Agenda What is Keras? Contributors for Keras Keras Models Implementing a Neural Network Use-Case Summary
  • 3. Copyright © 2017, edureka and/or its affiliates. All rights reserved. What Is Keras? Official high-level API of TensorFlow! Copyright © 2018, edureka and/or its affiliates. All rights reserved.
  • 4. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow What Is Keras? Keras - Modular • Building models is as simple as stacking layers and connecting graphs. Open Source • Actively developed by contributors across the world! • Good amount of documentation Deep Learning Library • High-level Neural Network API • Runs on top of TensorFlow, Theano or CNTK. High Performance • High performing API used to specify and train differentiable programs.
  • 5. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Who Makes Keras? Who are the contributors and backers? Copyright © 2018, edureka and/or its affiliates. All rights reserved.
  • 6. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Who Makes Keras? 4800+ Contributors 250,000 Keras developers > 2x Year-on-year growth Start-ups Good amount of traction
  • 7. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Who Uses Keras? Let’s check out the industry traction! Copyright © 2018, edureka and/or its affiliates. All rights reserved.
  • 8. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Industry Traction And more..!
  • 9. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow What Makes Keras Special? Highlights from one of the top Deep Learning libraries! Copyright © 2018, edureka and/or its affiliates. All rights reserved.
  • 10. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow What Makes Keras Special? Large adoption in the industry Multi-backend, multi-platform Focus on user experience Research community4 Easy to grasp all concepts5 Fast prototyping6 Runs seamlessly on CPU and GPU7 Freedom to design any architecture8 Simple to get started9 Easy production of models10
  • 11. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Keras User Experience API Designed for Humans • Keras follows best practices for reducing cognitive load • Offers consistent and simple APIs Not Designed for Machines • Minimizes number of user actions required for common use cases • Provides clear feedback upon user error Easy to Learn & Easy to Use • More productive • Try more ideas than your competition • Helps you win competitions High Flexibility • Keras integrates with lower-level Deep Learning languages like TensorFlow • Implement anything which was built in base language. 1 3 2 4
  • 12. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Multi-Backend & Multi-Platform 01 02 03 Development Develop in Python, R Run the code with: • TensorFlow • CNTK • Theano • MXNet • CPU • NVIDIA GPU • AMD GPU • TPU • Etc.. Producing Models • TF-Serving • GPU acceleration (WebKeras, Keras.js) • Android (TF, TF Lite) • iOS (Native CoreML) • Raspberry Pi {code} Run The Code
  • 13. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Working Principle Of Keras Let’s take a quick look at the basics of Keras’ backend Copyright © 2018, edureka and/or its affiliates. All rights reserved.
  • 14. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Working Principle – Backend • e = c*d where, “c = a+b” and “d = b+1” • So, e = (a+b)*(b+1) • Here “a” ,“b” are inputs 01 02 03 04 Expressing complex expressions as a combination of simple operations Useful for calculating derivatives during backpropagation Easier to implement distributed computation Just specify the inputs, outputs and make sure the graph is connected Computational Graphs As easy as that!
  • 15. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Keras Models There are 2 major models that Keras offers! Copyright © 2018, edureka and/or its affiliates. All rights reserved.
  • 16. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Keras Models Sequential Model • Linear stack of layers • Useful for building simple models • Simple classification network • Encoder – Decoder models • The model we all know and love! • Treat each layer as object that feeds into the next.
  • 17. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Keras Models Functional Model • Like playing with Lego bricks • Good for 95% of use cases Multi-input, multi-output and arbitrary static graph topologies Multi – input and Multi – output models Complex models which forks into 2 or more branches Models with shared (Weights) layers 01 02 03 04
  • 18. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Keras Models Functional Model (Domain Adaption) • Train on Domain A and Test on Domain B • Results in poor performance on test set • The data are from different domains We will be looking at a very interesting use case using the functional model in the upcoming slides Solution: Adapt the model to both the domains
  • 19. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Understanding Execution There are 2 types of execution! Copyright © 2018, edureka and/or its affiliates. All rights reserved.
  • 20. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Execution – Two Types Deferred (symbolic) • We use Python to build a computation graph first • The compiled graph then gets executed later Eager ( imperative) • Here, the Python runtime is the execution runtime • It is similar to execution with Numpy • Symbolic tensors don’t have a value in the Python code (yet) • Eager tensors have a value in the Python code • With eager execution, value-dependent dynamic topologies (tree-RNNs) can be used. On the whole
  • 21. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Implementing a Neural Network There are 5 major steps to implement our own Neural Network with Keras! Copyright © 2018, edureka and/or its affiliates. All rights reserved.
  • 22. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Implementing A Neural Network 1. Prepare Input • Preparing the input and specify the input dimension (size) • Images, videos, text and audio 2. Define the ANN Model • Define the model architecture and build the computational graph • Sequential or Functional Style • MLP, CNN, RNN 3. Optimizers • Specify the optimizer and configure the learning process • SGD, RMSprop, Adam 5. Train and Evaluate Model • Train the model based on the training data • Test the model on the dataset with the testing data 4. Loss Function • Specify the Inputs, Outputs of the computational graph (model) and the Loss function • MSE, Cross Entropy, Hinge
  • 23. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Use-Case With Keras Let’s check out an interesting Wine Classifier use-case! Copyright © 2018, edureka and/or its affiliates. All rights reserved.
  • 24. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Use Case – Problem Statement “Predicting the price of wine with the Keras Functional API and TensorFlow” Building a wide and deep network using Keras (tf.Keras) to predict the price of wine from its description Predict the price of a bottle of wine just from its description and variety? • This problem is well suited for wide & deep learning • It involves text input and there isn’t any correlation between a wine’s description and its price
  • 25. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Use Case – Model A good use-case for the Functional API is implementing a wide and deep network in Keras! A lot of Keras models are built using the Sequential model API BUT Let’s try to solve our use-case with the Functional API The Sequential API is the best way to get started with Keras Because it lets you easily define models as a stack of layers The Functional API allows for more flexibility and is best suited for models with multiple inputs or combined models Wide models are models with sparse feature vectors or vectors with mostly zero values Multi-layer deep networks do well on tasks like image or speech recognition
  • 26. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Use Case – Dataset DATASET Country1 2 Description 3 Designation 4 Points 5 Price 6 Region_1 Region_27 8 Taster Name 9 Taster Twitter Handle 10 Title Variety11 Winery12 The overall goal is to create a model that can identify the variety, winery and location of a wine based on a description This dataset offers some great opportunities for sentiment analysis and other text related predictive models
  • 27. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Use Case – Sample Description: • Powerful vanilla scents rise from the glass, but the fruit, even in this difficult vintage, comes out immediately. • It’s tart and sharp, with a strong herbal component, and the wine snaps into focus quickly with fruit, acid, tannin, herb and vanilla in equal proportion. • Firm and tight, still quite young, this wine needs decanting and/or further bottle age to show its best. Variety: Pinot Noir Prediction: Price — $45
  • 28. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Use Case – Prerequisites
  • 29. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Use Case – Prerequisites Here are all the imports we’ll need to build this model! Test presence of TensorFlow by printing the version Download the data and convert it to a Pandas Data Frame
  • 30. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Use Case – Let’s See Code! Google Colaboratory
  • 31. AI & Deep Learning Training www.edureka.co/ai-deep-learning-with-tensorflow Session In A Minute What is Keras? Contributors Specialty of Keras Implementing a Neural Network Use-Case ImplementationKeras Models
  • 32. Copyright © 2018, edureka and/or its affiliates. All rights reserved.