SlideShare a Scribd company logo
Sanjib Basak
Digital River Inc.
 Working as a director of data science at
Digital River
 Working in analytics field for 15 plus
years
 Built analytical applications in Retail and
Healthcare
 Fascinated by Machine Learning and
Deep Learning
 Playing with Tensor Flow for 6-7 months
 Host of another meet up “Twin cities Big
Data Analytics”
 Introduction to Tensor Flow
 A basic model with Tensor Flow
 Language Model
 RNN with Tensor Flow
 Advantages of Tenor Flow over Python Numpy
 Question and Answer
 TensorFlow™ is an open source software library for numerical computation using
data flow graphs.
 Open sourced by Google in Nov,2015
 The flexible architecture allows to deploy computation to one or more CPUs or
GPUs in a desktop, server, or mobile device with a single API.
 One of the most popular project in open source community– with 30,000+ Stars
and 13,000+ Forks in Git Hub
 “Tensors provide a natural and concise mathematical framework for formulating
and solving problems in areas of physics such as elasticity, fluid mechanics, and
general relativity” – Wolfram Mathworld
 Tensors are n dimensional arrays
 Scalar is 0 D tensor
 Vector is 1 D tensor
 Matrix is 2 D tensor
1.5
1.1
1.3
1.5, 1.6,1.7
1.1,1.2,1.3
1.3,1.6,1.7
Vector Matrix
1.5
Scalar
Tensor
 Node: Represents Operations like
Addition, Multiplications etc.
 Edges: Carriers of the operations
 Kernels: Implementation of the operations
in device - CPU , GPU
 Session: A session is created when client
program establish communication with TF
run time code
 Tensor Flow data structure:
 Rank : Rank as defined above
 Shape : Number of rows and columns
 Type – Int,Float32
 A linear regression model using ipython notebook
• Language Models computes the probability of occurrences of words in a sequence
• Widely used in speech and translation system
• Model chooses best word ordering from various possibilities
“The world is small”,“small is the world”
Bi-Gram and Tri-Gram Model
Drawbacks:
• In some cases window of past consecutive
words may not be sufficient
• Fails to capture context
“Jane and John met in the market. …
They started fighting with each other”.
Who started fighting?
• Memory intensive
• In 2001, Bengio et al. introduces the
first large-scale deep learning for
natural language processing model
• This model capture context via
learning a distributed representation
of words
• A Feed Forward Neural Network Model
word vectors
Loss Function: Cross Entropy
Measurement of the Model
In 2010 Mokolov et. all presented multi layered Recurrent Neural Network (in NLP)
Load Data
Add
Placeholder
Create Feed
Dictionary
Validate
Model
Test Model
Add Embedding
(embed_size = 50)
Create and
update Hidden
Layer
(Hidden layer of
size =100)
Create and
update
Projection
Layer
Calculate
Loss
Optimizer applied
to all trainable
variables
S
Optimization
achieved
E
Repeat…until required optimization
Train Model
 Problem Definition
 Test 1 Trained on 20 sections of WSJ data of Penn Tree Bank
 Test 2 Trained on Harry Potter and Deathly Hallows
Tensorflowv5.0
 http://www.wildml.com/
On Deep Learning/NLP
 http://cs.stanford.edu/people/karpathy/
 http://www.wildml.com/
 Mikolov’s thesis:
 http://www.fit.vutbr.cz/~imikolov/rnnlm/thesis.pdf
 Richard Socherr’s Thesis
 http://nlp.stanford.edu/~socherr/thesis.pdf
On TensorFlow
 https://www.tensorflow.org/
Comparison between TensorFlow and other frameworks
 http://deeplearning4j.org/compare-dl4j-torch7-pylearn.html
Q&A

More Related Content

PDF
Introduction to Tensor Flow for Optical Character Recognition (OCR)
PPTX
Tensor flow
PPTX
Neural networks and google tensor flow
PPTX
Daniel Shank, Data Scientist, Talla at MLconf SF 2016
PDF
Machine Intelligence at Google Scale: TensorFlow
PPTX
Introduction to Machine Learning with TensorFlow
PPTX
Neural Networks with Google TensorFlow
PPTX
Avi Pfeffer, Principal Scientist, Charles River Analytics at MLconf SEA - 5/2...
Introduction to Tensor Flow for Optical Character Recognition (OCR)
Tensor flow
Neural networks and google tensor flow
Daniel Shank, Data Scientist, Talla at MLconf SF 2016
Machine Intelligence at Google Scale: TensorFlow
Introduction to Machine Learning with TensorFlow
Neural Networks with Google TensorFlow
Avi Pfeffer, Principal Scientist, Charles River Analytics at MLconf SEA - 5/2...

What's hot (20)

PDF
Overview of TensorFlow For Natural Language Processing
PDF
Erin LeDell, Machine Learning Scientist, H2O.ai at MLconf ATL 2016
PDF
Introduction To TensorFlow
PPTX
Deep learning with tensorflow
PDF
Dr. Erin LeDell, Machine Learning Scientist, H2O.ai at MLconf SEA - 5/20/16
PPTX
Build a simple image recognition system with tensor flow
PDF
Melanie Warrick, Deep Learning Engineer, Skymind.io at MLconf SF - 11/13/15
PPTX
Deep Learning, Keras, and TensorFlow
PDF
Neural Turing Machines
PPTX
Practical deep learning for computer vision
PDF
Introduction to TensorFlow
PDF
Distributed implementation of a lstm on spark and tensorflow
PPTX
Deep learning from scratch
PPTX
Keras on tensorflow in R & Python
PPTX
D3, TypeScript, and Deep Learning
PDF
Training Deep Networks with Backprop (D1L4 Insight@DCU Machine Learning Works...
PPTX
Introduction of Machine learning and Deep Learning
PDF
Siamese networks
PDF
Deep Recurrent Neural Networks for Sequence Learning in Spark by Yves Mabiala
PDF
Your first TensorFlow programming with Jupyter
Overview of TensorFlow For Natural Language Processing
Erin LeDell, Machine Learning Scientist, H2O.ai at MLconf ATL 2016
Introduction To TensorFlow
Deep learning with tensorflow
Dr. Erin LeDell, Machine Learning Scientist, H2O.ai at MLconf SEA - 5/20/16
Build a simple image recognition system with tensor flow
Melanie Warrick, Deep Learning Engineer, Skymind.io at MLconf SF - 11/13/15
Deep Learning, Keras, and TensorFlow
Neural Turing Machines
Practical deep learning for computer vision
Introduction to TensorFlow
Distributed implementation of a lstm on spark and tensorflow
Deep learning from scratch
Keras on tensorflow in R & Python
D3, TypeScript, and Deep Learning
Training Deep Networks with Backprop (D1L4 Insight@DCU Machine Learning Works...
Introduction of Machine learning and Deep Learning
Siamese networks
Deep Recurrent Neural Networks for Sequence Learning in Spark by Yves Mabiala
Your first TensorFlow programming with Jupyter
Ad

Similar to Tensorflowv5.0 (20)

PPTX
Natural language processing and transformer models
PPTX
What is TensorFlow? | Introduction to TensorFlow | TensorFlow Tutorial For Be...
PDF
Intoduction to Large language models prompt
PPTX
Breaking down the AI magic of ChatGPT: A technologist's lens to its powerful ...
PPTX
Chatbot_Presentation
PPTX
Gnerative AI presidency Module1_L4_LLMs_new.pptx
PDF
ijeter35852020.pdf
PDF
Generative AI leverages algorithms to create various forms of content
PDF
Model Evaluation in the land of Deep Learning
PPTX
Networking chapter jkl; dfghyubLec 1.pptx
PPTX
Hadoop training in mumbai
PDF
Master LLMs with LangChain -the basics of LLM
PPTX
Big Data: the weakest link
PDF
Naver learning to rank question answer pairs using hrde-ltc
PDF
Analyzing Big Data's Weakest Link (hint: it might be you)
DOC
resume16
PDF
ODSC East: Effective Transfer Learning for NLP
PDF
ChatGPT-and-Generative-AI-Landscape Working of generative ai search
PPTX
Introduction to tensorflow
PDF
Deep Learning with CNTK
Natural language processing and transformer models
What is TensorFlow? | Introduction to TensorFlow | TensorFlow Tutorial For Be...
Intoduction to Large language models prompt
Breaking down the AI magic of ChatGPT: A technologist's lens to its powerful ...
Chatbot_Presentation
Gnerative AI presidency Module1_L4_LLMs_new.pptx
ijeter35852020.pdf
Generative AI leverages algorithms to create various forms of content
Model Evaluation in the land of Deep Learning
Networking chapter jkl; dfghyubLec 1.pptx
Hadoop training in mumbai
Master LLMs with LangChain -the basics of LLM
Big Data: the weakest link
Naver learning to rank question answer pairs using hrde-ltc
Analyzing Big Data's Weakest Link (hint: it might be you)
resume16
ODSC East: Effective Transfer Learning for NLP
ChatGPT-and-Generative-AI-Landscape Working of generative ai search
Introduction to tensorflow
Deep Learning with CNTK
Ad

Tensorflowv5.0

  • 2.  Working as a director of data science at Digital River  Working in analytics field for 15 plus years  Built analytical applications in Retail and Healthcare  Fascinated by Machine Learning and Deep Learning  Playing with Tensor Flow for 6-7 months  Host of another meet up “Twin cities Big Data Analytics”
  • 3.  Introduction to Tensor Flow  A basic model with Tensor Flow  Language Model  RNN with Tensor Flow  Advantages of Tenor Flow over Python Numpy  Question and Answer
  • 4.  TensorFlow™ is an open source software library for numerical computation using data flow graphs.  Open sourced by Google in Nov,2015  The flexible architecture allows to deploy computation to one or more CPUs or GPUs in a desktop, server, or mobile device with a single API.  One of the most popular project in open source community– with 30,000+ Stars and 13,000+ Forks in Git Hub
  • 5.  “Tensors provide a natural and concise mathematical framework for formulating and solving problems in areas of physics such as elasticity, fluid mechanics, and general relativity” – Wolfram Mathworld  Tensors are n dimensional arrays  Scalar is 0 D tensor  Vector is 1 D tensor  Matrix is 2 D tensor 1.5 1.1 1.3 1.5, 1.6,1.7 1.1,1.2,1.3 1.3,1.6,1.7 Vector Matrix 1.5 Scalar Tensor
  • 6.  Node: Represents Operations like Addition, Multiplications etc.  Edges: Carriers of the operations  Kernels: Implementation of the operations in device - CPU , GPU  Session: A session is created when client program establish communication with TF run time code  Tensor Flow data structure:  Rank : Rank as defined above  Shape : Number of rows and columns  Type – Int,Float32
  • 7.  A linear regression model using ipython notebook
  • 8. • Language Models computes the probability of occurrences of words in a sequence • Widely used in speech and translation system • Model chooses best word ordering from various possibilities “The world is small”,“small is the world”
  • 9. Bi-Gram and Tri-Gram Model Drawbacks: • In some cases window of past consecutive words may not be sufficient • Fails to capture context “Jane and John met in the market. … They started fighting with each other”. Who started fighting? • Memory intensive
  • 10. • In 2001, Bengio et al. introduces the first large-scale deep learning for natural language processing model • This model capture context via learning a distributed representation of words • A Feed Forward Neural Network Model
  • 11. word vectors Loss Function: Cross Entropy Measurement of the Model In 2010 Mokolov et. all presented multi layered Recurrent Neural Network (in NLP)
  • 12. Load Data Add Placeholder Create Feed Dictionary Validate Model Test Model Add Embedding (embed_size = 50) Create and update Hidden Layer (Hidden layer of size =100) Create and update Projection Layer Calculate Loss Optimizer applied to all trainable variables S Optimization achieved E Repeat…until required optimization Train Model
  • 13.  Problem Definition  Test 1 Trained on 20 sections of WSJ data of Penn Tree Bank  Test 2 Trained on Harry Potter and Deathly Hallows
  • 16. On Deep Learning/NLP  http://cs.stanford.edu/people/karpathy/  http://www.wildml.com/  Mikolov’s thesis:  http://www.fit.vutbr.cz/~imikolov/rnnlm/thesis.pdf  Richard Socherr’s Thesis  http://nlp.stanford.edu/~socherr/thesis.pdf On TensorFlow  https://www.tensorflow.org/ Comparison between TensorFlow and other frameworks  http://deeplearning4j.org/compare-dl4j-torch7-pylearn.html