SlideShare a Scribd company logo
Avilay Parekh
Sep 2018
What is AI?
AI & ML Applications (Live Demos)
A Toy ML problem
1940s to Today
Bias (More Live Demos)
Ethics
Singularity
Career
From 0:19 to 1:25
0:50 to 1:20
2:50 to 3:09
1:14 to 2:40
A human-made system that is able to learn.
The Roomba does not have to be programmed for each new room it operates in.
The Tesla is able to drive itself on a variety of different roads, traffic conditions,
and weather conditions.
Formal Definition by John McCarthy in 1956
AI involves machines that can perform tasks that are characteristic of human
intelligence.
AI: Artificial Intelligence
ML: Machine Learning
DL: Deep Learning
Ref: https://www.deeplearning.org
Ref: https://cloud.google.com/vision/
Demo: https://cloud.google.com/vision/
Ref: https://cloud.google.com/vision/
Ref: https://youtu.be/VOC3huqHrss
Ref: https://medium.com/artists-and-machine-intelligence/neural-artistic-style-transfer-a-comprehensive-look-f54d8649c199
Ref: https://arxiv.org/pdf/1605.05396.pdf
Ref: https://arxiv.org/abs/1710.10196
Two imaginary celebrities dreamed up by a Neural Network
Ref: https://arxiv.org/abs/1710.10196
Ref: https://research.googleblog.com/2016/03/deep-learning-for-robots-learning-from.html
Ref: https://connect.unity.com/p/pancake-bot
Predict whether an individual will play or not; given the weather conditions outside.
We have historical data about what this individual has done in the past.
Our job is to predict what they will do in the future.
Outlook Temperature Humidity Wind Play
Sunny Hot High Weak No
Sunny Hot High Strong No
Overcast Hot High Weak Yes
Rain MIld High Weak Yes
Rain Cool Normal Weak Yes
Rain Cool Normal Strong No
Overcast Cool Normal Strong Yes
Sunny Mild High Weak No
Sunny Cool Normal Weak Yes
Rain Mild Normal Weak Yes
Sunny MIld Normal Strong Yes
Overcast Mild High Strong Yes
Overcast Hot Normal Weak Yes
Rain Mild High Strong No
Rain Cool High Strong ?
Outlook Temperature Humidity Wind Play
Sunny=1 Hot=1 High=1 Weak=1 No=0
Sunny=1 Hot=1 High=1 Strong=2 No=0
Overcast=2 Hot=1 High=1 Weak=1 Yes=1
Rain=3 MIld=2 High=1 Weak=1 Yes=1
Rain=3 Cool=3 Normal=2 Weak=1 Yes=1
Rain=3 Cool=3 Normal=2 Strong=2 No=0
Overcast=2 Cool=3 Normal=2 Strong=2 Yes=1
Sunny=1 Mild=2 High=1 Weak=1 No=0
Sunny=1 Cool=3 Normal=2 Weak=1 Yes=1
Rain=3 Mild=2 Normal=2 Weak=1 Yes=1
Sunny=1 MIld=2 Normal=2 Strong=2 Yes=1
Overcast=2 Mild=2 High=1 Strong=2 Yes=1
Overcast=2 Hot=1 Normal=2 Weak=1 Yes=1
Rain=3 Mild=2 High=1 Strong=2 No=0
Rain=3 Cool=3 High=1 Strong=2 ?
Outlook Temperature Humidity Wind Play
1 1 1 1 0
1 1 1 2 0
2 1 1 1 1
3 2 1 1 1
3 3 2 1 1
3 3 2 2 0
2 3 2 2 1
1 2 1 1 0
1 3 2 1 1
3 2 2 1 1
1 2 2 2 1
2 2 1 2 1
2 1 2 1 1
3 2 1 2 0
3 3 1 2 ?
x1 =
outlook
x2 =
temperature
x3 =
humidity
x4 =
wind
y = play
w1
w2
w3
w4
Outlook Temperature Humidity Wind y_hat Play
1.w1 1.w2 1.w3 1.w4 b Close to 0 0
1.w1 1.w2 1.w3 2.w4 b Close to 0 0
2.w1 1.w2 1.w3 1.w4 b Close to 1 1
3.w1 2.w2 1.w3 1.w4 b Close to 1 1
3.w1 3.w2 2.w3 1.w4 b Close to 1 1
3.w1 3.w2 2.w3 2.w4 b Close to 0 0
2.w1 3.w2 2.w3 2.w4 b Close to 1 1
1.w1 2.w2 1.w3 1.w4 b Close to 0 0
1.w1 3.w2 2.w3 1.w4 b Close to 1 1
3.w1 2.w2 2.w3 1.w4 b Close to 1 1
1.w1 2.w2 2.w3 2.w4 b Close to 1 1
2.w1 2.w2 1.w3 2.w4 b Close to 1 1
2.w1 1.w2 2.w3 1.w4 b Close to 1 1
3.w1 2.w2 1.w3 2.w4 b Close to 0 0
3.w1 3.w2 1.w3 2.w4 b ? ?
1.w1 + 1.w2 + 1.w3 + 1.w4 + b = Close to 0
1.w1 + 1.w2 + 1.w3 + 2.w4 + b = Close to 0
2.w1 + 1.w2 + 1.w3 + 1.w4 + b = Close to 1
3.w1 + 2.w2 + 1.w3 + 1.w4 + b = Close to 1
3.w1 + 3.w2 + 2.w3 + 1.w4 + b = Close to 1
3.w1 + 3.w2 + 2.w3 + 2.w4 + b = Close to 0
2.w1 + 3.w2 + 2.w3 + 2.w4 + b = Close to 1
1.w1 + 2.w2 + 1.w3 + 1.w4 + b = Close to 0
1.w1 + 3.w2 + 2.w3 + 1.w4 + b = Close to 1
3.w1 + 2.w2 + 2.w3 + 1.w4 + b = Close to 1
1.w1 + 2.w2 + 2.w3 + 2.w4 + b = Close to 1
2.w1 + 2.w2 + 1.w3 + 2.w4 + b = Close to 1
Linear Equation
Non-Linear Activation
ML Model
D
Model Parameters
Learnt by the system
Labeled Data
Software
Parameters
Feed in labeled training data, and out come the model
parameters
Input unlabeled data and model parameters; and the
software will output the prediction
Parameters
Unlabeled data
Software
Predictions
A 256x256 picture
A 256x256 picture Red Channel Green Channel Blue Channel
= + +
A 256x256 picture Red Channel Green Channel Blue Channel
Just 256x256
numbers
= + +
A 256x256 picture Red Channel Green Channel Blue Channel
Just 256x256x3 =
196,608 numbers
= + +
Same conceptual model - Linear function followed by an activation function
But the parameters were carefully selected - by hand!
X1 X2 Y
1 1 1
1 0 0
0 1 0
0 0 0
x1 +1
+1
-1.5
x2
1
y
X1 X2 Y
1 1 0
1 0 1
0 1 1
0 0 0
x1 ?
?
?
x2
1
y
No linear function followed by an
activation function can solve XOR!
X1 X2 Y
1 1 0
1 0 1
0 1 1
0 0 0
h1
h2
1
y
x1
x2
1
hidden layer
The solution was to add a
hidden layer - but that
didn't come until much
later..
Carefully hand-crafting weights was not going
to scale beyond toy logic gates.
To solve real world problems the "AI" system
was going to have to learn the weights itself,
based solely on input data.
In 1986 Geoffrey Hinton came up with the
Back propagation algorithm to do this.
Ref: https://beamandrew.github.io/deeplearning/2017/02/23/deep_learning_101_part1.html
Hinton introduces the idea of deep belief nets
Amazon AWS launches
Hadoop 0.1.0 is released
● Deep Learning needs lots of training data
● Processing lots of data requires Big Data technologies
● Big Data technologies require lots of computing power
Big Data + Cloud Computing + Deep Learning = AWESOMENESS!!
Machines competing against Humans has been a long
standing goal of AI.
In 1997 IBM Deep Blue defeated Chess champion Gary
Kasparov by analyzing all possible moves and selecting the
best move.
This will not work in the ancient game of Go. The number of
possible moves is greater than the atoms in the Universe!
In 2015 researchers in Deep Mind created a program that
defeated 18 time world Go champion Lee Sidol using a
technique in DL called Reinforcement Learning.
Huge waves in the AI community.
Must watch Netflix documentary
(https://www.netflix.com/title/80190844).
Simplest DNN
Each layer has 1000s of
nodes
A bunch of hidden layers
(usually 3 to 5)
Fully Connected = Each
node in one layer is
connected to all the nodes
in the next layer
https://www.mathworks.com/discovery/convolutional-neural-network.html
Usually applied to Computer Vision type problems
Most mature in terms of research
Usually applied to sequential data, e.g., daily temperatures, language models, etc.
Very powerful and gaining rapid traction
Ref: http://colah.github.io/posts/2015-08-Understanding-LSTMs/
Usually applied to generate images
Recently has been applied to generate other artifacts like 3D drawings, fonts, etc.
Ref: https://medium.freecodecamp.org/an-intuitive-introduction-to-generative-adversarial-networks-gans-7a2264a81394
Usually applied to train an "agent" to act in a certain way
Very exciting field with a lot of new research being done daily
Ref: http://karpathy.github.io/2016/05/31/rl/
Language Modeling
Assign probabilities to sentences, i.e., predict which word is most likely to follow
some sequence of words in a sentence.
Used in Speech2Text e.g., by Siri, Alexa, Ok Google, etc.
At its core is the ability to represent words as numbers. But how?
Demos
https://cloud.google.com/speech-to-text/
https://cloud.google.com/translate/
I like Gujarati because I love my mom
In 2013 researchers led by Tomas Mikolov at Google trained their model on a
billion+ Google News articles in English.
Each word in the English language is represented by a vector of 300 numbers.
Since then this technique has been applied to multiple languages including
Hindi and Gujarati.
Word2Vec has been instrumental in recent advancements in Language
Modeling.
Original Paper:
Efficient Estimation of Word Representation in Vector Space (https://arxiv.org/abs/1301.3781)
The model did something amazing! It learnt relationships between word pairs like
country-capital, man-woman, verb-tense. ALL ON ITS OWN!!
Ref: https://www.tensorflow.org/tutorials/representation/word2vec
father : mother :: doctor : ?
man : woman :: computer programmer : ?
father : mother :: doctor : nurse
man : woman :: computer programmer : homemaker
It learnt to be sexist! Again, ALL ON ITS OWN!!
Original Paper:
Man is to Computer Programmer as Woman is to Homemaker? Debiasing Word Embeddings
(https://arxiv.org/abs/1607.06520)
Ref: https://www.bbc.com/news/technology-33347866
Very active field of research
In May 2018 MS announced that they are working on bias identification tools
In May 2018 Facebook announced Fairness Flow - their tool to identify bias
In Sept 2018 Google announced What-If to analyze ML performance
In Sept 2018 IBM launched Fairness 360 Kit
But all these tools can only identify known bias like race, gender, age, etc. What
about our latent biases? E.g., in 1950s gender bias was the norm.
Ref: https://www.theregister.co.uk/2017/06/20/tesla_death_crash_accident_report_ntsb/
In AV mode crashed into a white trailer truck mistaking it for super bright sky killing
the car driver
Ref: https://internetofbusiness.com/uber-safety-driver-watching-video-before-fatal-crash-say-police/
Killed a pedestrian
who was jaywalking
across the road at
night
Driver was watching
TV on his phone
Ref: https://www.bloomberg.com/news/articles/2018-03-31/tesla-says-driver-s-hands-weren-t-on-wheel-at-time-of-accident
Crashed in a highway barrier
killing its driver
Driver ignored the car's
warning for 6 seconds before
the car finally crashed
A
B
A Do Nothing
B Pull the switch
A
B
A Do Nothing
B Pull the switch
A
B
A Do Nothing
B Pull the switch
No right answer
Depends on the individual making the decision and the context of the decision
Well known problem in studied by students in ethics since 1967
Wikipedia link for details and variants -
https://en.wikipedia.org/wiki/Trolley_problem
In Autonomous Vehicle settings we need to grapple with these kinds of issues
MIT Media Labs Moral Machine asks humans to answer similar questions
http://moralmachine.mit.edu/
National Highway Traffic Safety Administration issued AV safety guidelines
https://www.nhtsa.gov/technology-innovation/automated-vehicles-safety
Car companies rely on simulations to get certified
CARLA (http://carla.org/) open source self-driving simulation software
Apollo (http://apollo.auto/) open source self-driving hardware sensors
AirSim (https://github.com/Microsoft/AirSim) open source self-driving and self-flying simulation software
No, serious scientists have been talking about this phenomenon since 1958
including Von Neumann and Stephen Hawking
Technological progress has been advancing in leaps and bounds; but limited by
human intelligence which has pretty much remained the same for a millennia
Lets say we build an AI that is slightly more intelligent (capable) than humans
It will then figure out a way to build other AIs that are more capable than itself, who
in turn will build next gen AIs who are even smarter…
Eventually AIs will far surpass any and all human cognitive abilities giving them
god-like power over us
1. A robot may not injure a human being, or, through inaction, allow a human
being to come to harm
2. A robot must obey the orders given by human beings except where such orders
would conflict with the First Law
3. A robot must protect its own existence as long as such protection does not
conflict with the First or Second Laws
0. A robot may not harm humanity, or, by inaction, allow humanity to come to harm
1. A robot may not injure a human being, or, through inaction, allow a human
being to come to harm
2. A robot must obey the orders given by human beings except where such orders
would conflict with the First Law
3. A robot must protect its own existence as long as such protection does not
conflict with the First or Second Laws
Academic Think Tanks like Future of Life Institute are researching this topic
Industry is mostly ignoring the prospect of Singularity
Very big and completely unpredictable technology breakthroughs are needed
before such a Seed AI can be created
A very interesting discussion on Feb 2018 moderated by Neil deGrasse Tyson
https://www.youtube.com/watch?v=gb4SshJ5WOY
Computer Science
Linear Algebra
Calculus
Statistics & Probability
Hardware
Integrated Chip Design
Sensors
Consumer Products
Software
Low (Operating System) level APIs
ML libraries
ML Software As A Service
Applications
Data:
https://drive.google.com/open?id=1RP27WbpctWKL5vsRISb7FQma6oKgcQwh
Minimize J => Find the values of weights for which J is minimum
Entire dataset of (say) 1000 samples
Calculate the gradient over the entire dataset
Update all the weights
.
.
.
.
Do this for multiple iterations until the weights converge
x1 =
outlook
x2 =
temperature
x3 =
humidity
x4 =
wind
y = play
w1
w2
w3
w4
x1 =
outlook
x2 =
temperature
x3 =
humidity
x4 =
wind
y = play
a1
a2
a3
hidden layer
v
u
x1 =
outlook
x2 =
temperature
x3 =
humidity
x4 =
wind
y = play
a1
a2
a3
hidden layer
v
u
w
An easy way to calculate the gradients
a δ
w
w
No need to derive the entire cost function at once
Just consider the two nodes in question
a = forward propagation
δ = back propagation
a2
a1
a3
a
w1
w2
w3
δ
δ1
δ2
δ3
u1
u2
u3
δ
δ1
δ2
δ3
u1
u2
u3
δ
δ1
δ2
δ3
u1
u2
u3
δ4
δ5
δ6
v
As we go further back into the network, more and more weights are multiplied with
each other
δ
δ1
δ2
δ3
u1
u2
u3
δ4
δ5
δ6
v
δ8
δ9
δ7
w
As we go further back into the network, weights are multiplied with each other
If the weights are small (between 0 and 1), they become even smaller → Network
does not learn anything
If the weights are big, they become even bigger → Network learns nonsensical
things
.
.
.
.
What if our dataset has millions of samples?
Each small weight update has to wait until all the samples are processed
This can take a loooong time to converge!
Divide the entire dataset into mini-batches with T samples in each mini-batch
Calculate the gradient over each mini-batch
{1} {2} {t}...
Update the weights after each mini-batch
Do this for multiple epochs until the weights converge
…
…

More Related Content

What's hot

AI in Manufacturing: Opportunities & Challenges
AI in Manufacturing: Opportunities & ChallengesAI in Manufacturing: Opportunities & Challenges
AI in Manufacturing: Opportunities & Challenges
Tathagat Varma
 
Deep Learning - The Past, Present and Future of Artificial Intelligence
Deep Learning - The Past, Present and Future of Artificial IntelligenceDeep Learning - The Past, Present and Future of Artificial Intelligence
Deep Learning - The Past, Present and Future of Artificial Intelligence
Lukas Masuch
 
GENERATIVE AI, THE FUTURE OF PRODUCTIVITY
GENERATIVE AI, THE FUTURE OF PRODUCTIVITYGENERATIVE AI, THE FUTURE OF PRODUCTIVITY
GENERATIVE AI, THE FUTURE OF PRODUCTIVITY
Andre Muscat
 
Leveraging Generative AI: Opportunities, Risks and Best Practices
Leveraging Generative AI: Opportunities, Risks and Best Practices Leveraging Generative AI: Opportunities, Risks and Best Practices
Leveraging Generative AI: Opportunities, Risks and Best Practices
Social Samosa
 
Impact of Artificial Intelligence in IT Industry
Impact of Artificial Intelligence in IT IndustryImpact of Artificial Intelligence in IT Industry
Impact of Artificial Intelligence in IT Industry
Anand SFJ
 
Generative AI
Generative AIGenerative AI
Generative AI
lutzsuarnaba1
 
Artificial intelligence (AI) - Definition, Classification, Development, & Con...
Artificial intelligence (AI) - Definition, Classification, Development, & Con...Artificial intelligence (AI) - Definition, Classification, Development, & Con...
Artificial intelligence (AI) - Definition, Classification, Development, & Con...
Andreas Kaplan
 
Artificial intelligence in practice- part-1
Artificial intelligence in practice- part-1Artificial intelligence in practice- part-1
Artificial intelligence in practice- part-1
GMR Group
 
AI overview
AI  overviewAI  overview
AI overview
Nadia Gouda
 
Artificial Intelligence And Machine Learning PowerPoint Presentation Slides C...
Artificial Intelligence And Machine Learning PowerPoint Presentation Slides C...Artificial Intelligence And Machine Learning PowerPoint Presentation Slides C...
Artificial Intelligence And Machine Learning PowerPoint Presentation Slides C...
SlideTeam
 
How Does Generative AI Actually Work? (a quick semi-technical introduction to...
How Does Generative AI Actually Work? (a quick semi-technical introduction to...How Does Generative AI Actually Work? (a quick semi-technical introduction to...
How Does Generative AI Actually Work? (a quick semi-technical introduction to...
ssuser4edc93
 
Exploring Opportunities in the Generative AI Value Chain.pdf
Exploring Opportunities in the Generative AI Value Chain.pdfExploring Opportunities in the Generative AI Value Chain.pdf
Exploring Opportunities in the Generative AI Value Chain.pdf
Dung Hoang
 
TEDx Manchester: AI & The Future of Work
TEDx Manchester: AI & The Future of WorkTEDx Manchester: AI & The Future of Work
TEDx Manchester: AI & The Future of Work
Volker Hirsch
 
AI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete Deck
AI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete DeckAI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete Deck
AI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete Deck
SlideTeam
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
Guduru Lakshmi Kiranmai
 
Differences Between Machine Learning Ml Artificial Intelligence Ai And Deep L...
Differences Between Machine Learning Ml Artificial Intelligence Ai And Deep L...Differences Between Machine Learning Ml Artificial Intelligence Ai And Deep L...
Differences Between Machine Learning Ml Artificial Intelligence Ai And Deep L...
SlideTeam
 
Evolution of AI in workplace.pptx
Evolution of AI in workplace.pptxEvolution of AI in workplace.pptx
Evolution of AI in workplace.pptx
AshishUpadhyay957206
 
Journey of Generative AI
Journey of Generative AIJourney of Generative AI
Journey of Generative AI
thomasjvarghese49
 
AI Solutions in Manufacturing
AI Solutions in ManufacturingAI Solutions in Manufacturing
AI Solutions in Manufacturing
Sri Ambati
 
Simplified Introduction to AI
Simplified Introduction to AISimplified Introduction to AI
Simplified Introduction to AI
Deepu S Nath
 

What's hot (20)

AI in Manufacturing: Opportunities & Challenges
AI in Manufacturing: Opportunities & ChallengesAI in Manufacturing: Opportunities & Challenges
AI in Manufacturing: Opportunities & Challenges
 
Deep Learning - The Past, Present and Future of Artificial Intelligence
Deep Learning - The Past, Present and Future of Artificial IntelligenceDeep Learning - The Past, Present and Future of Artificial Intelligence
Deep Learning - The Past, Present and Future of Artificial Intelligence
 
GENERATIVE AI, THE FUTURE OF PRODUCTIVITY
GENERATIVE AI, THE FUTURE OF PRODUCTIVITYGENERATIVE AI, THE FUTURE OF PRODUCTIVITY
GENERATIVE AI, THE FUTURE OF PRODUCTIVITY
 
Leveraging Generative AI: Opportunities, Risks and Best Practices
Leveraging Generative AI: Opportunities, Risks and Best Practices Leveraging Generative AI: Opportunities, Risks and Best Practices
Leveraging Generative AI: Opportunities, Risks and Best Practices
 
Impact of Artificial Intelligence in IT Industry
Impact of Artificial Intelligence in IT IndustryImpact of Artificial Intelligence in IT Industry
Impact of Artificial Intelligence in IT Industry
 
Generative AI
Generative AIGenerative AI
Generative AI
 
Artificial intelligence (AI) - Definition, Classification, Development, & Con...
Artificial intelligence (AI) - Definition, Classification, Development, & Con...Artificial intelligence (AI) - Definition, Classification, Development, & Con...
Artificial intelligence (AI) - Definition, Classification, Development, & Con...
 
Artificial intelligence in practice- part-1
Artificial intelligence in practice- part-1Artificial intelligence in practice- part-1
Artificial intelligence in practice- part-1
 
AI overview
AI  overviewAI  overview
AI overview
 
Artificial Intelligence And Machine Learning PowerPoint Presentation Slides C...
Artificial Intelligence And Machine Learning PowerPoint Presentation Slides C...Artificial Intelligence And Machine Learning PowerPoint Presentation Slides C...
Artificial Intelligence And Machine Learning PowerPoint Presentation Slides C...
 
How Does Generative AI Actually Work? (a quick semi-technical introduction to...
How Does Generative AI Actually Work? (a quick semi-technical introduction to...How Does Generative AI Actually Work? (a quick semi-technical introduction to...
How Does Generative AI Actually Work? (a quick semi-technical introduction to...
 
Exploring Opportunities in the Generative AI Value Chain.pdf
Exploring Opportunities in the Generative AI Value Chain.pdfExploring Opportunities in the Generative AI Value Chain.pdf
Exploring Opportunities in the Generative AI Value Chain.pdf
 
TEDx Manchester: AI & The Future of Work
TEDx Manchester: AI & The Future of WorkTEDx Manchester: AI & The Future of Work
TEDx Manchester: AI & The Future of Work
 
AI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete Deck
AI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete DeckAI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete Deck
AI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete Deck
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
Differences Between Machine Learning Ml Artificial Intelligence Ai And Deep L...
Differences Between Machine Learning Ml Artificial Intelligence Ai And Deep L...Differences Between Machine Learning Ml Artificial Intelligence Ai And Deep L...
Differences Between Machine Learning Ml Artificial Intelligence Ai And Deep L...
 
Evolution of AI in workplace.pptx
Evolution of AI in workplace.pptxEvolution of AI in workplace.pptx
Evolution of AI in workplace.pptx
 
Journey of Generative AI
Journey of Generative AIJourney of Generative AI
Journey of Generative AI
 
AI Solutions in Manufacturing
AI Solutions in ManufacturingAI Solutions in Manufacturing
AI Solutions in Manufacturing
 
Simplified Introduction to AI
Simplified Introduction to AISimplified Introduction to AI
Simplified Introduction to AI
 

Similar to Ai & ml

Artificial Intelligence for Undergrads
Artificial Intelligence for UndergradsArtificial Intelligence for Undergrads
Artificial Intelligence for Undergrads
Jose Berengueres
 
Mathematics and technology(2)
Mathematics and technology(2)Mathematics and technology(2)
Mathematics and technology(2)
Jonathan Martin
 
Machine Learning & AI - 2022 intro for pre-college students.pdf
Machine Learning & AI - 2022 intro for pre-college students.pdfMachine Learning & AI - 2022 intro for pre-college students.pdf
Machine Learning & AI - 2022 intro for pre-college students.pdf
Ed Fernandez
 
Chatbots in 2017 -- Ithaca Talk Dec 6
Chatbots in 2017 -- Ithaca Talk Dec 6Chatbots in 2017 -- Ithaca Talk Dec 6
Chatbots in 2017 -- Ithaca Talk Dec 6
Paul Houle
 
Intuition & Use-Cases of Embeddings in NLP & beyond
Intuition & Use-Cases of Embeddings in NLP & beyondIntuition & Use-Cases of Embeddings in NLP & beyond
Intuition & Use-Cases of Embeddings in NLP & beyond
C4Media
 
Deep Learning Class #0 - You Can Do It
Deep Learning Class #0 - You Can Do ItDeep Learning Class #0 - You Can Do It
Deep Learning Class #0 - You Can Do It
Holberton School
 
DL Classe 0 - You can do it
DL Classe 0 - You can do itDL Classe 0 - You can do it
DL Classe 0 - You can do it
Gregory Renard
 
Introduction to Neural Networks
Introduction to Neural NetworksIntroduction to Neural Networks
Introduction to Neural Networks
Databricks
 
TFS Talk by Hackathorn 20100527 v2
TFS Talk by Hackathorn 20100527 v2TFS Talk by Hackathorn 20100527 v2
TFS Talk by Hackathorn 20100527 v2
Richard Hackathorn
 
Convolutional Neural Networks and Natural Language Processing
Convolutional Neural Networks and Natural Language ProcessingConvolutional Neural Networks and Natural Language Processing
Convolutional Neural Networks and Natural Language Processing
Thomas Delteil
 
APIdays Paris 2018 - Bots on the 'Net: The Good, the Bad, and the Future, Mik...
APIdays Paris 2018 - Bots on the 'Net: The Good, the Bad, and the Future, Mik...APIdays Paris 2018 - Bots on the 'Net: The Good, the Bad, and the Future, Mik...
APIdays Paris 2018 - Bots on the 'Net: The Good, the Bad, and the Future, Mik...
apidays
 
Applications of Machine Learning at UCSB
Applications of Machine Learning at UCSBApplications of Machine Learning at UCSB
Applications of Machine Learning at UCSB
Sri Ambati
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
Matt Welsh
 
AI Introduction: AI is the new electricity (by Slash)
AI Introduction: AI is the new electricity (by Slash)AI Introduction: AI is the new electricity (by Slash)
AI Introduction: AI is the new electricity (by Slash)
Andries De Vos
 
Causal inference-for-profit | Dan McKinley | DN18
Causal inference-for-profit | Dan McKinley | DN18Causal inference-for-profit | Dan McKinley | DN18
Causal inference-for-profit | Dan McKinley | DN18
DataconomyGmbH
 
DN18 | A/B Testing: Lessons Learned | Dan McKinley | Mailchimp
DN18 | A/B Testing: Lessons Learned | Dan McKinley | MailchimpDN18 | A/B Testing: Lessons Learned | Dan McKinley | Mailchimp
DN18 | A/B Testing: Lessons Learned | Dan McKinley | Mailchimp
Dataconomy Media
 
C 3
C 3C 3
C 3
C 3C 3
C 4
C 4C 4
[244]로봇이 현실 세계에 대해 학습하도록 만들기
[244]로봇이 현실 세계에 대해 학습하도록 만들기[244]로봇이 현실 세계에 대해 학습하도록 만들기
[244]로봇이 현실 세계에 대해 학습하도록 만들기
NAVER D2
 

Similar to Ai & ml (20)

Artificial Intelligence for Undergrads
Artificial Intelligence for UndergradsArtificial Intelligence for Undergrads
Artificial Intelligence for Undergrads
 
Mathematics and technology(2)
Mathematics and technology(2)Mathematics and technology(2)
Mathematics and technology(2)
 
Machine Learning & AI - 2022 intro for pre-college students.pdf
Machine Learning & AI - 2022 intro for pre-college students.pdfMachine Learning & AI - 2022 intro for pre-college students.pdf
Machine Learning & AI - 2022 intro for pre-college students.pdf
 
Chatbots in 2017 -- Ithaca Talk Dec 6
Chatbots in 2017 -- Ithaca Talk Dec 6Chatbots in 2017 -- Ithaca Talk Dec 6
Chatbots in 2017 -- Ithaca Talk Dec 6
 
Intuition & Use-Cases of Embeddings in NLP & beyond
Intuition & Use-Cases of Embeddings in NLP & beyondIntuition & Use-Cases of Embeddings in NLP & beyond
Intuition & Use-Cases of Embeddings in NLP & beyond
 
Deep Learning Class #0 - You Can Do It
Deep Learning Class #0 - You Can Do ItDeep Learning Class #0 - You Can Do It
Deep Learning Class #0 - You Can Do It
 
DL Classe 0 - You can do it
DL Classe 0 - You can do itDL Classe 0 - You can do it
DL Classe 0 - You can do it
 
Introduction to Neural Networks
Introduction to Neural NetworksIntroduction to Neural Networks
Introduction to Neural Networks
 
TFS Talk by Hackathorn 20100527 v2
TFS Talk by Hackathorn 20100527 v2TFS Talk by Hackathorn 20100527 v2
TFS Talk by Hackathorn 20100527 v2
 
Convolutional Neural Networks and Natural Language Processing
Convolutional Neural Networks and Natural Language ProcessingConvolutional Neural Networks and Natural Language Processing
Convolutional Neural Networks and Natural Language Processing
 
APIdays Paris 2018 - Bots on the 'Net: The Good, the Bad, and the Future, Mik...
APIdays Paris 2018 - Bots on the 'Net: The Good, the Bad, and the Future, Mik...APIdays Paris 2018 - Bots on the 'Net: The Good, the Bad, and the Future, Mik...
APIdays Paris 2018 - Bots on the 'Net: The Good, the Bad, and the Future, Mik...
 
Applications of Machine Learning at UCSB
Applications of Machine Learning at UCSBApplications of Machine Learning at UCSB
Applications of Machine Learning at UCSB
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
 
AI Introduction: AI is the new electricity (by Slash)
AI Introduction: AI is the new electricity (by Slash)AI Introduction: AI is the new electricity (by Slash)
AI Introduction: AI is the new electricity (by Slash)
 
Causal inference-for-profit | Dan McKinley | DN18
Causal inference-for-profit | Dan McKinley | DN18Causal inference-for-profit | Dan McKinley | DN18
Causal inference-for-profit | Dan McKinley | DN18
 
DN18 | A/B Testing: Lessons Learned | Dan McKinley | Mailchimp
DN18 | A/B Testing: Lessons Learned | Dan McKinley | MailchimpDN18 | A/B Testing: Lessons Learned | Dan McKinley | Mailchimp
DN18 | A/B Testing: Lessons Learned | Dan McKinley | Mailchimp
 
C 3
C 3C 3
C 3
 
C 3
C 3C 3
C 3
 
C 4
C 4C 4
C 4
 
[244]로봇이 현실 세계에 대해 학습하도록 만들기
[244]로봇이 현실 세계에 대해 학습하도록 만들기[244]로봇이 현실 세계에 대해 학습하도록 만들기
[244]로봇이 현실 세계에 대해 학습하도록 만들기
 

More from Avilay Parekh

Backprop
BackpropBackprop
Backprop
Avilay Parekh
 
Pupymeetup
PupymeetupPupymeetup
Pupymeetup
Avilay Parekh
 
Day4
Day4Day4
Day3
Day3Day3
Day2
Day2Day2
Day1
Day1Day1
Git primer
Git primerGit primer
Git primer
Avilay Parekh
 
Git undo
Git undoGit undo
Git undo
Avilay Parekh
 
Ruby object graph
Ruby object graphRuby object graph
Ruby object graph
Avilay Parekh
 
What is cloud computing
What is cloud computingWhat is cloud computing
What is cloud computing
Avilay Parekh
 

More from Avilay Parekh (10)

Backprop
BackpropBackprop
Backprop
 
Pupymeetup
PupymeetupPupymeetup
Pupymeetup
 
Day4
Day4Day4
Day4
 
Day3
Day3Day3
Day3
 
Day2
Day2Day2
Day2
 
Day1
Day1Day1
Day1
 
Git primer
Git primerGit primer
Git primer
 
Git undo
Git undoGit undo
Git undo
 
Ruby object graph
Ruby object graphRuby object graph
Ruby object graph
 
What is cloud computing
What is cloud computingWhat is cloud computing
What is cloud computing
 

Recently uploaded

Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
Zilliz
 
20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website
Pixlogix Infotech
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 

Recently uploaded (20)

Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
 
20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 

Ai & ml

  • 2. What is AI? AI & ML Applications (Live Demos) A Toy ML problem 1940s to Today Bias (More Live Demos) Ethics Singularity Career
  • 3.
  • 7. A human-made system that is able to learn. The Roomba does not have to be programmed for each new room it operates in. The Tesla is able to drive itself on a variety of different roads, traffic conditions, and weather conditions. Formal Definition by John McCarthy in 1956 AI involves machines that can perform tasks that are characteristic of human intelligence.
  • 8. AI: Artificial Intelligence ML: Machine Learning DL: Deep Learning Ref: https://www.deeplearning.org
  • 9.
  • 10.
  • 11.
  • 12.
  • 19. Two imaginary celebrities dreamed up by a Neural Network Ref: https://arxiv.org/abs/1710.10196
  • 22.
  • 23. Predict whether an individual will play or not; given the weather conditions outside. We have historical data about what this individual has done in the past. Our job is to predict what they will do in the future.
  • 24. Outlook Temperature Humidity Wind Play Sunny Hot High Weak No Sunny Hot High Strong No Overcast Hot High Weak Yes Rain MIld High Weak Yes Rain Cool Normal Weak Yes Rain Cool Normal Strong No Overcast Cool Normal Strong Yes Sunny Mild High Weak No Sunny Cool Normal Weak Yes Rain Mild Normal Weak Yes Sunny MIld Normal Strong Yes Overcast Mild High Strong Yes Overcast Hot Normal Weak Yes Rain Mild High Strong No Rain Cool High Strong ?
  • 25. Outlook Temperature Humidity Wind Play Sunny=1 Hot=1 High=1 Weak=1 No=0 Sunny=1 Hot=1 High=1 Strong=2 No=0 Overcast=2 Hot=1 High=1 Weak=1 Yes=1 Rain=3 MIld=2 High=1 Weak=1 Yes=1 Rain=3 Cool=3 Normal=2 Weak=1 Yes=1 Rain=3 Cool=3 Normal=2 Strong=2 No=0 Overcast=2 Cool=3 Normal=2 Strong=2 Yes=1 Sunny=1 Mild=2 High=1 Weak=1 No=0 Sunny=1 Cool=3 Normal=2 Weak=1 Yes=1 Rain=3 Mild=2 Normal=2 Weak=1 Yes=1 Sunny=1 MIld=2 Normal=2 Strong=2 Yes=1 Overcast=2 Mild=2 High=1 Strong=2 Yes=1 Overcast=2 Hot=1 Normal=2 Weak=1 Yes=1 Rain=3 Mild=2 High=1 Strong=2 No=0 Rain=3 Cool=3 High=1 Strong=2 ?
  • 26. Outlook Temperature Humidity Wind Play 1 1 1 1 0 1 1 1 2 0 2 1 1 1 1 3 2 1 1 1 3 3 2 1 1 3 3 2 2 0 2 3 2 2 1 1 2 1 1 0 1 3 2 1 1 3 2 2 1 1 1 2 2 2 1 2 2 1 2 1 2 1 2 1 1 3 2 1 2 0 3 3 1 2 ?
  • 27. x1 = outlook x2 = temperature x3 = humidity x4 = wind y = play w1 w2 w3 w4
  • 28. Outlook Temperature Humidity Wind y_hat Play 1.w1 1.w2 1.w3 1.w4 b Close to 0 0 1.w1 1.w2 1.w3 2.w4 b Close to 0 0 2.w1 1.w2 1.w3 1.w4 b Close to 1 1 3.w1 2.w2 1.w3 1.w4 b Close to 1 1 3.w1 3.w2 2.w3 1.w4 b Close to 1 1 3.w1 3.w2 2.w3 2.w4 b Close to 0 0 2.w1 3.w2 2.w3 2.w4 b Close to 1 1 1.w1 2.w2 1.w3 1.w4 b Close to 0 0 1.w1 3.w2 2.w3 1.w4 b Close to 1 1 3.w1 2.w2 2.w3 1.w4 b Close to 1 1 1.w1 2.w2 2.w3 2.w4 b Close to 1 1 2.w1 2.w2 1.w3 2.w4 b Close to 1 1 2.w1 1.w2 2.w3 1.w4 b Close to 1 1 3.w1 2.w2 1.w3 2.w4 b Close to 0 0 3.w1 3.w2 1.w3 2.w4 b ? ?
  • 29. 1.w1 + 1.w2 + 1.w3 + 1.w4 + b = Close to 0 1.w1 + 1.w2 + 1.w3 + 2.w4 + b = Close to 0 2.w1 + 1.w2 + 1.w3 + 1.w4 + b = Close to 1 3.w1 + 2.w2 + 1.w3 + 1.w4 + b = Close to 1 3.w1 + 3.w2 + 2.w3 + 1.w4 + b = Close to 1 3.w1 + 3.w2 + 2.w3 + 2.w4 + b = Close to 0 2.w1 + 3.w2 + 2.w3 + 2.w4 + b = Close to 1 1.w1 + 2.w2 + 1.w3 + 1.w4 + b = Close to 0 1.w1 + 3.w2 + 2.w3 + 1.w4 + b = Close to 1 3.w1 + 2.w2 + 2.w3 + 1.w4 + b = Close to 1 1.w1 + 2.w2 + 2.w3 + 2.w4 + b = Close to 1 2.w1 + 2.w2 + 1.w3 + 2.w4 + b = Close to 1
  • 33. Labeled Data Software Parameters Feed in labeled training data, and out come the model parameters
  • 34. Input unlabeled data and model parameters; and the software will output the prediction Parameters Unlabeled data Software Predictions
  • 36. A 256x256 picture Red Channel Green Channel Blue Channel = + +
  • 37. A 256x256 picture Red Channel Green Channel Blue Channel Just 256x256 numbers = + +
  • 38. A 256x256 picture Red Channel Green Channel Blue Channel Just 256x256x3 = 196,608 numbers = + +
  • 39.
  • 40. Same conceptual model - Linear function followed by an activation function But the parameters were carefully selected - by hand!
  • 41. X1 X2 Y 1 1 1 1 0 0 0 1 0 0 0 0 x1 +1 +1 -1.5 x2 1 y
  • 42. X1 X2 Y 1 1 0 1 0 1 0 1 1 0 0 0 x1 ? ? ? x2 1 y No linear function followed by an activation function can solve XOR!
  • 43. X1 X2 Y 1 1 0 1 0 1 0 1 1 0 0 0 h1 h2 1 y x1 x2 1 hidden layer The solution was to add a hidden layer - but that didn't come until much later..
  • 44. Carefully hand-crafting weights was not going to scale beyond toy logic gates. To solve real world problems the "AI" system was going to have to learn the weights itself, based solely on input data. In 1986 Geoffrey Hinton came up with the Back propagation algorithm to do this.
  • 46. Hinton introduces the idea of deep belief nets Amazon AWS launches Hadoop 0.1.0 is released ● Deep Learning needs lots of training data ● Processing lots of data requires Big Data technologies ● Big Data technologies require lots of computing power
  • 47. Big Data + Cloud Computing + Deep Learning = AWESOMENESS!!
  • 48. Machines competing against Humans has been a long standing goal of AI. In 1997 IBM Deep Blue defeated Chess champion Gary Kasparov by analyzing all possible moves and selecting the best move. This will not work in the ancient game of Go. The number of possible moves is greater than the atoms in the Universe! In 2015 researchers in Deep Mind created a program that defeated 18 time world Go champion Lee Sidol using a technique in DL called Reinforcement Learning. Huge waves in the AI community. Must watch Netflix documentary (https://www.netflix.com/title/80190844).
  • 49.
  • 50. Simplest DNN Each layer has 1000s of nodes A bunch of hidden layers (usually 3 to 5) Fully Connected = Each node in one layer is connected to all the nodes in the next layer
  • 51. https://www.mathworks.com/discovery/convolutional-neural-network.html Usually applied to Computer Vision type problems Most mature in terms of research
  • 52. Usually applied to sequential data, e.g., daily temperatures, language models, etc. Very powerful and gaining rapid traction Ref: http://colah.github.io/posts/2015-08-Understanding-LSTMs/
  • 53. Usually applied to generate images Recently has been applied to generate other artifacts like 3D drawings, fonts, etc. Ref: https://medium.freecodecamp.org/an-intuitive-introduction-to-generative-adversarial-networks-gans-7a2264a81394
  • 54. Usually applied to train an "agent" to act in a certain way Very exciting field with a lot of new research being done daily Ref: http://karpathy.github.io/2016/05/31/rl/
  • 55.
  • 56. Language Modeling Assign probabilities to sentences, i.e., predict which word is most likely to follow some sequence of words in a sentence. Used in Speech2Text e.g., by Siri, Alexa, Ok Google, etc. At its core is the ability to represent words as numbers. But how?
  • 58. In 2013 researchers led by Tomas Mikolov at Google trained their model on a billion+ Google News articles in English. Each word in the English language is represented by a vector of 300 numbers. Since then this technique has been applied to multiple languages including Hindi and Gujarati. Word2Vec has been instrumental in recent advancements in Language Modeling. Original Paper: Efficient Estimation of Word Representation in Vector Space (https://arxiv.org/abs/1301.3781)
  • 59. The model did something amazing! It learnt relationships between word pairs like country-capital, man-woman, verb-tense. ALL ON ITS OWN!! Ref: https://www.tensorflow.org/tutorials/representation/word2vec
  • 60. father : mother :: doctor : ? man : woman :: computer programmer : ?
  • 61. father : mother :: doctor : nurse man : woman :: computer programmer : homemaker It learnt to be sexist! Again, ALL ON ITS OWN!! Original Paper: Man is to Computer Programmer as Woman is to Homemaker? Debiasing Word Embeddings (https://arxiv.org/abs/1607.06520)
  • 63. Very active field of research In May 2018 MS announced that they are working on bias identification tools In May 2018 Facebook announced Fairness Flow - their tool to identify bias In Sept 2018 Google announced What-If to analyze ML performance In Sept 2018 IBM launched Fairness 360 Kit But all these tools can only identify known bias like race, gender, age, etc. What about our latent biases? E.g., in 1950s gender bias was the norm.
  • 64.
  • 65. Ref: https://www.theregister.co.uk/2017/06/20/tesla_death_crash_accident_report_ntsb/ In AV mode crashed into a white trailer truck mistaking it for super bright sky killing the car driver
  • 66. Ref: https://internetofbusiness.com/uber-safety-driver-watching-video-before-fatal-crash-say-police/ Killed a pedestrian who was jaywalking across the road at night Driver was watching TV on his phone
  • 67. Ref: https://www.bloomberg.com/news/articles/2018-03-31/tesla-says-driver-s-hands-weren-t-on-wheel-at-time-of-accident Crashed in a highway barrier killing its driver Driver ignored the car's warning for 6 seconds before the car finally crashed
  • 68. A
  • 69. B
  • 70. A Do Nothing B Pull the switch
  • 71. A B
  • 72. A Do Nothing B Pull the switch
  • 73. A B
  • 74. A Do Nothing B Pull the switch
  • 75. No right answer Depends on the individual making the decision and the context of the decision Well known problem in studied by students in ethics since 1967 Wikipedia link for details and variants - https://en.wikipedia.org/wiki/Trolley_problem In Autonomous Vehicle settings we need to grapple with these kinds of issues
  • 76. MIT Media Labs Moral Machine asks humans to answer similar questions http://moralmachine.mit.edu/ National Highway Traffic Safety Administration issued AV safety guidelines https://www.nhtsa.gov/technology-innovation/automated-vehicles-safety Car companies rely on simulations to get certified CARLA (http://carla.org/) open source self-driving simulation software Apollo (http://apollo.auto/) open source self-driving hardware sensors AirSim (https://github.com/Microsoft/AirSim) open source self-driving and self-flying simulation software
  • 77.
  • 78.
  • 79. No, serious scientists have been talking about this phenomenon since 1958 including Von Neumann and Stephen Hawking Technological progress has been advancing in leaps and bounds; but limited by human intelligence which has pretty much remained the same for a millennia Lets say we build an AI that is slightly more intelligent (capable) than humans It will then figure out a way to build other AIs that are more capable than itself, who in turn will build next gen AIs who are even smarter… Eventually AIs will far surpass any and all human cognitive abilities giving them god-like power over us
  • 80. 1. A robot may not injure a human being, or, through inaction, allow a human being to come to harm 2. A robot must obey the orders given by human beings except where such orders would conflict with the First Law 3. A robot must protect its own existence as long as such protection does not conflict with the First or Second Laws
  • 81. 0. A robot may not harm humanity, or, by inaction, allow humanity to come to harm 1. A robot may not injure a human being, or, through inaction, allow a human being to come to harm 2. A robot must obey the orders given by human beings except where such orders would conflict with the First Law 3. A robot must protect its own existence as long as such protection does not conflict with the First or Second Laws
  • 82. Academic Think Tanks like Future of Life Institute are researching this topic Industry is mostly ignoring the prospect of Singularity Very big and completely unpredictable technology breakthroughs are needed before such a Seed AI can be created A very interesting discussion on Feb 2018 moderated by Neil deGrasse Tyson https://www.youtube.com/watch?v=gb4SshJ5WOY
  • 83.
  • 85. Hardware Integrated Chip Design Sensors Consumer Products Software Low (Operating System) level APIs ML libraries ML Software As A Service Applications
  • 86.
  • 87.
  • 89. Entire dataset of (say) 1000 samples Calculate the gradient over the entire dataset Update all the weights
  • 90. . . . . Do this for multiple iterations until the weights converge
  • 91. x1 = outlook x2 = temperature x3 = humidity x4 = wind y = play w1 w2 w3 w4
  • 92. x1 = outlook x2 = temperature x3 = humidity x4 = wind y = play a1 a2 a3 hidden layer v u
  • 93. x1 = outlook x2 = temperature x3 = humidity x4 = wind y = play a1 a2 a3 hidden layer v u
  • 94.
  • 95. w An easy way to calculate the gradients
  • 96. a δ w w No need to derive the entire cost function at once Just consider the two nodes in question a = forward propagation δ = back propagation
  • 99. δ δ1 δ2 δ3 u1 u2 u3 δ4 δ5 δ6 v As we go further back into the network, more and more weights are multiplied with each other
  • 101.
  • 102. As we go further back into the network, weights are multiplied with each other If the weights are small (between 0 and 1), they become even smaller → Network does not learn anything If the weights are big, they become even bigger → Network learns nonsensical things
  • 103. . . . . What if our dataset has millions of samples? Each small weight update has to wait until all the samples are processed This can take a loooong time to converge!
  • 104. Divide the entire dataset into mini-batches with T samples in each mini-batch Calculate the gradient over each mini-batch {1} {2} {t}... Update the weights after each mini-batch
  • 105. Do this for multiple epochs until the weights converge … …