SlideShare a Scribd company logo
1 of 61
Artificial
Intelligence
Gautam Gupta
Architect
Fin-tech $$$
https://www.linkedin.com/in/guptagautam/
https://twitter.com/gautamgupta
http://www.gautamgupta.com/
What is
Artificial
Intelligence?
Use YP to search coffee shop
or
Search Google for “Coffee near
me”
Artificial Intelligence: Examples
Calling 1-800 call center IVR
or
Ask SIRI/Alexa a question
Artificial Intelligence: Examples
Searching in aisles of a store
or
Shopping on Amazon.com
Artificial Intelligence: Examples
What does a
regular program
do?
We have X.
We want Y.
We write a function to get Y.
E.g. Income Tax calculation
Regular Program
What does an AI
program do?
We have X.
We know some Y.
We try different functions f to
get Y.
The approx. f is output of AI.
E.g. Image Recognition
AI Program
We have data of fruits.
Weight, color, height,
length, shape etc.
AI Program
Between Apple and Banana, shape is the
classifier
AI Program
Between Apple and pine apple, size is the
classifier
AI Program
Between Apple and Orange, color is the
classifier
AI Program
What is the
difference
between AI and
ML?
AI vs. ML
Artificial
Intelligence
Machine
Learning
Data
Engineering
Computer
Science
Uses
What is an AI
Model?
AI Model
Model 1
Model 2
…
Model 3
AI Model
Output
Input
C
Input
B
Input
A
to identify text signs.
to read characters of
language.
to translate the words.
to render the translation on
your phone.
What are the main
types of AI
Models?
Supervised Model
Prediction
Demand of a product
based on previous sale
Y = f(X)
Unsupervised Model
Find Association
Clustering
Is there a Y = f(X)
How does an AI
program work?
We have some data
and price of houses.
We want to estimate
the price of more
houses.
AI Program: Regression Example
It is a regression problem.
We have some data about the houses like- built
up area, lot size, year built etc.
We use algorithm like- Linear Regression.
AI Program : How
AI Program: Linear Regression
Price = aX + bY + c
X = sq ft
Y = year built
We have some data
about animals.
We want to classify
more data to identify
the animal type for a
record.
AI Program: Classification
It is a clustering problem.
We have some data about the animals like-
height, weight, shape, color, has tail etc.
We use algorithm like- K nearest neighbors.
AI Program: How
AI Program: KNN
How do we train
a model?
Training a Model
We start with initial data.
Divide data into training and test data.
Create model on training data.
Test model on test data
Let say we have sale price, sq ft., year built, number of
rooms, tax information of 100 houses.
Training a Model
Initial Data Training Data Test Data
25 houses75 houses100 houses
Create a Model on
training data
Training Output
75
houses
Training
Data
Test the model on
test data
Test Output
25
houses
Test
Data
Run the model on
production data
Production Output
houses
Production
Data
What are the tools
for Artificial
Intelligence?
Language: Python, R, Java
Data tools: SQL, Pandas etc.
Data storage: BigQuery, DynamoDB etc.
Data Stream: Kinesis, Kafka etc.
ML libraries: Scikit learn, TensorFlow, Theano etc.
Environment: Jupyter Notebook
Production: Google Cloud, AWS Cloud, Azure
Artificial Intelligence: Tools
What is Jupyter
Notebook?
Julia Python R
Open Source
Web based
Interactive output
Share documents
Big data support
Jupyter Notebook
Jupyter Notebook
Demo
What is Deep
Learning?
Inspired from nervous system
Uses layers for ML
Learns supervised and unsupervised
Learns by example
Requires large amount of data
E.g. Driverless cars, voice control
Deep Learning
What is Neural
Network?
One input Layer
Multiple hidden layers
One output Layer
Weights
Neural Network
TensorFlow
What is a
Tensor?
Matrix
2 D
1 2 3
4 5 6
7 8 9
Tensor
Tensor
n D
0D 1
1D 1 2 3
2D 1 2
3 4
What is
TensorFlow?
Open Source Library
Machine Learning and Deep Learning
Developed by Google Brain team
Flexible Architecture
TensorFlow
What are the
benefits of
TensorFlow?
TensorFlow : Benefits
Written in Python
Google support
Faster compile time
Tensorboard for visualization
Deep learning
What is the API
used in
TensorFlow?
Keras API
High Level API for TensorFlow
TensorFlow API
What is an Epoch
in TensorFlow?
“An epoch is a full iteration over samples. The
number of epochs is how many times the
algorithm is going to run.”
TensorFlow Epoch
What are the big
companies using
TensorFlow?
TensorFlow Users
TensorFlow
Demo
https://www.python.org/
https://pandas.pydata.org/
http://jupyter.org/
https://www.tensorflow.org
https://keras.io/
Want to know more?
Thanks!

More Related Content

Recently uploaded

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Recently uploaded (20)

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 

Featured

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
Simplilearn
 

Featured (20)

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
 

Learn Basics of Artificial intelligence with TensorFlow

Editor's Notes

  1. Let me explain you with some examples. Traditionally we have used Yellow Pages to search for businesses around us. In the programming world, we replicated it by creating a database of businesses online and searching through that db. The search uses index etc. In Google when we search for Coffee near me, it has to recognize where we are. Our location is determined or approximated. Then it searches for not only coffee shops but also restaurants or other businesses that carry coffee. It tries to approximate the nearness…whether it is 1 mile or 100 yards. Behind the scene there is AI in play in Google search.
  2. Another example is of IVR. When we call a Call center, it greets with hello but gives us the options like- press 1 to do this and press 9 to repeat the menu. Does it feel like an intelligence piece? No. When we ask SIRI or Alexa a question, it responds with intelligence. It appears as if we are talking to a real person. The model in Alexa / SIRI keeps improving itself with Machine Learning to make it more intelligent.
  3. Another good example is of searching through the aisles of a store. When eCommerce started, the same store model was replicated online. But with Amazon and other pioneers, AI was brought into online shopping. Now when you search for a product on Amazon, it can suggest you the things that go with the main product. It creates bundles for you. It even tries to find the product relevant to your need. It even shows you the product that can be delivered to you early.
  4. In a regular program, we have some data as X. We want the output Y. For this we write a function or an algorithm to get Y. E.g. If we want to calculate Income Tax, we code all the rules of calculating Income tax in our software. By doing this we can calculate the Income tax for 1 person or thousands of persons very fast. But in future if the rules of Income Tax change we have to again code it into our program. Luckily the rules change once a year, so it is not that difficult to code.
  5. In an AI program we have X as input data. We also has Y as output data for some values of X. But we do not know how we get Y from X. So our AI program tries different functions to get Y. This approximate function that can give us Y from X is the output of an AI program. It is called learning from data. One good example is Image recognition. If you compare with Income Tax calculation example, there are so many variations in Images that it is almost impractical to write if else statements in code to recognize elements in an Image. Here we us AI for image recognition.
  6. Let us understand by a simple example. We have data of fruits. Data contains weight, color, height, shape etc of each fruit.
  7. It is a classification problem. We have ML algorithms that can help us classify data. When we give this data to our AI program, it can help us determine that between an Apple and Banana, shape is the better classifier. We can use color as a classifier, but it may not give good results, because there can be green apples of color similar to a green banana. The AI program tells us which classifier gives us better results.
  8. Similarly between an Apple and Pine Apple, size is the better classifier.
  9. When it comes to Apples and Oranges, the size can be quite similar. In this case color can be a very good classifier. The AI program keeps suggesting the best features that can be used for classification with confidence.
  10. Now comes the question, what is the difference between AI and ML. Whether Artificial Intelligence and Machine Learning are two same things or one is the subset of other.
  11. In my view, Artificial Intelligence is a broader subject that uses technologies in Machine Learning, Data Engineering, Computer Science etc to create AI programs. ML is a subset of AI. ML is the set of tools and techniques that we use for Artificial Intelligence. Eg. Robotics is a field that uses laws of physics, electronics and mechanics.
  12. An AI Model is a program or set of programs that we use for a problem. A model can be single piece of code. Or it can be many models put together to form a higher level model.
  13. This is an example of Google App for translation. It can translate text in images from one language to another language. It is very useful when you are travelling to foreign countries. In this example our AI model consists of multiple models. There is a model to identify text signs. You may point the camera to many things like a flower, tree, road etc. But it will ignore these objects and focus on the signs with text in it. The other model will get the input from previous model and identify the characters and language in the text. It is like an OCR.
  14. Supervised learning is where you have input variables (x) and an output variable (Y) and you use an algorithm to learn the mapping function from the input to the output. Y = f(X) We have labels in the input data. It can be continuous data.
  15. Unsupervised learning is where you only have input data (X) and no corresponding output variables. The goal for unsupervised learning is to model the underlying structure or distribution in the data in order to learn more about the data.
  16. Start Jupyter Create a Notebook Rename Notebook Create heading Write markdown Import libraries: import pandas as pd Version libraries: pd.__version__ Write code Run code Remove the cells
  17. Neural Networks consist of the following components An input layer, x An arbitrary amount of hidden layers An output layer, ŷ A set of weights and biases between each layer, W and b A choice of activation function for each hidden layer, σ. In this tutorial, we’ll use a Sigmoid activation function.
  18. A tensor is a generalized matrix. It could be a 1-D matrix (vector) or a 3-D matrix (like a cube of numbers), even a 0-D matrix (a single number), or a higher dimensional structure that is harder to visualize. The dimension of the tensor is called its rank.
  19. Written in Python (even though some parts crucial for performance is implemented in C++) which is a very attractive language to read and develop in It’s developed and maintained by Google. As such, a continued support and development is ensured Very large and active community Faster model compilation than Theano-based options Faster compile times than Theano Multiple GPUs support. So you can freely run the code on different machines without having to stop or restart the program Tensorboard is the powerful visualization suite which is developed to track both the network topology and performance, making debugging even simpler. Is about more than deep learning. TensorFlow actually has tools to support reinforcement learning and other algorithms.