SlideShare a Scribd company logo
1 of 54
Download to read offline
Neural Network
iRonhead
2016/09/20
Why machine learning?
● Cool!
● Solve things which can be solved by human master.
● Discover things which can not be discovered by human master.
● Hail Terminator!
Things will be covered:
● Machine learning and CIFAR-10.
● Simple math.
● A shallow deep neural network.
● Data flow inside the neural network.
● Inside the neural network.
● Machine learning terms.
● Neural network zoo.
● Applications.
● Q&A
Machine Learning
Machine Learning
● Reinforcement learning.
● Unsupervised learning.
● Supervised learning.
● …….
Reinforcement Learning
We can act base on states to
gain rewards. Find the best
actions to get the best result.
https://gym.openai.com/envs/LunarLander-v2
Unsupervised Learning
Y = f(X)
We know X. We want to find f to
describe X.
https://github.com/Newmu/dcgan_code
Supervised Learning
https://github.com/cazala/mnist
Y = f(X)
We know X & Y. We want to find
f so that f(X’) = Y’.
Supervised Learning
CIFAR-10
● 32 x 32 x 3 color images.
● 10 classes.
● 50000 training images.
● 10000 test images.
http://www.cs.toronto.edu/~kriz/cifar.html
Math
Vectors - 1
<3758, 3, 0, 6, 15, 2, 3>
1. JIRA: VSD-3758.
2. P3.
3. 0 votes.
4. 6 watchers.
5. 15 comments.
6. 2 attachments.
7. On the 3-rd generation devices.
Vectors - 2
<1, 2, 3, 4, 5, 6, 7, 8, 9, 10>
一鄉二里共三夫子,
不識四書五經六義,
竟敢教七八九子,
十分大膽!
Vector - 3
bullshit
magicvitality
dexterity strength
<0.9, 0.3, 0.25, 0.2, 0.8>
Vector dot product - 1:
<a0
, a1
, …, an
> ∙ <b0
, b1
, …, bn
>
= a0
* b0
+ a1
* b1
+ … + an
* bn
va
∙ vb
= | va
| * | vb
| * cos
Vector dot product - 2:
ϴ
like does not care
ϴ
ϴ
hate
Matrix - 1
bullshit
magicvitality
dexterity strength
bullshit
magicvitality
dexterity strength
bullshit
magicvitality
dexterity strength
0.99
0.30
0.20
0.15
0.30
0.05
0.05
0.95
0.30
0.85
0.50
0.95
0.10
0.10
0.10
Matrix - 2
<1.0, 0.5, 0.5, 0.2, 0.3>
lip warrier mage
<1.36, 0.865, 1.075>
lip warrier mage
Matrix - 2
lip warrier mage
<1.36, 1.865, 1.075>
lip warrier mage
<0.0, 1.0, 0.0>
Chain rule
An optimization problem
Stochastic Gradient Descent
w
energy
Deep Neural Network
A shallow deep neural network
3072 1024 1024
airplane1%
automobile1%
bird5%
cat80%
deer2%
dog1%
frog2%
horse5%
ship2%
truck1%
SoftMaxReLU
Affine Gate
1024 1024
ReLU Gate
1024 1024ReLU
SoftMax Gate
1%
1%
5%
80%
2%
1%
2%
5%
2%
1%
SoftMax
Forward Pass
3072 1024 1024
airplane1%
automobile13%
bird5%
cat68%
deer2%
dog1%
frog2%
horse5%
ship2%
truck1%
SoftMaxReLU
it’s a car,
loss 87%
Back Propagate
3072 1024 1024 SoftMaxReLU Loss 87%
Chain rule and Affine - 1
Chain rule and Affine - 2
NN Result: ~47% accuracy
CNN Result: ~68% accuracy
Inside the Neural Network
The First Gate of the Shallow NN
W1
of a neural network for CIFAR-10
● shape: 3072 x 100
● sub image: 32 x 32 x 3
● a subimage is a column vector of W1
Machine Learning Terms
Hyper parameters
Regularization
Date sets
● Training set: used to train the model.
● Test set: used to adjust the model during training.
● Validation set: check the accuracy of trained model.
Do Not Blend Them!
Batch
Select a few random data for each traning setp because:
● We do not have that much memories!
● We do not have that much computing powers!
Learning rate
learning rate
Overfit
Neural Network Zoo
ConvNets
Aphex34, Own work, CC BY-SA 4.0
https://commons.wikimedia.org/wiki/File:Typical_cnn.png
https://creativecommons.org/licenses/by-sa/4.0/
DCGAN
https://github.com/Newmu/dcgan_code
Long short-term memory
Karpathy: The Unreasonable Effectiveness of Recurrent Neural Networks
Applications
Neural Style
A Neural Algorithm of Artistic Style
Deep Q-Learning Network
https://en.wikipedia.org/wiki/File:Breakout2600.png
Super resolution
Twitter, Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network
Object segments
Facebook FAIR, Learning to Refine Object Segments
https://research.facebook.com/publications/learning-to-refine-object-segments/
Neural Talk
Karpathy’s NeuralTalk2:
a bike parked on the side of a beach
WaveNets
● TTS
● Music generation.
Q^=A

More Related Content

Viewers also liked

Section5 Rbf
Section5 RbfSection5 Rbf
Section5 Rbfkylin
 
Radial basis function network ppt bySheetal,Samreen and Dhanashri
Radial basis function network ppt bySheetal,Samreen and DhanashriRadial basis function network ppt bySheetal,Samreen and Dhanashri
Radial basis function network ppt bySheetal,Samreen and Dhanashrisheetal katkar
 
Summariz3 개발기
Summariz3 개발기Summariz3 개발기
Summariz3 개발기Jamie Seol
 
Introduction to Neural networks (under graduate course) Lecture 9 of 9
Introduction to Neural networks (under graduate course) Lecture 9 of 9Introduction to Neural networks (under graduate course) Lecture 9 of 9
Introduction to Neural networks (under graduate course) Lecture 9 of 9Randa Elanwar
 
Deep Learning for Machine Translation, by Satoshi Enoue, SYSTRAN
Deep Learning for Machine Translation, by Satoshi Enoue, SYSTRANDeep Learning for Machine Translation, by Satoshi Enoue, SYSTRAN
Deep Learning for Machine Translation, by Satoshi Enoue, SYSTRANTAUS - The Language Data Network
 
Adaptive Resonance Theory
Adaptive Resonance TheoryAdaptive Resonance Theory
Adaptive Resonance TheoryNaveen Kumar
 
Beyond the Hype of Neural Machine Translation, Diego Bartolome (tauyou) and G...
Beyond the Hype of Neural Machine Translation, Diego Bartolome (tauyou) and G...Beyond the Hype of Neural Machine Translation, Diego Bartolome (tauyou) and G...
Beyond the Hype of Neural Machine Translation, Diego Bartolome (tauyou) and G...TAUS - The Language Data Network
 
Neural networks...
Neural networks...Neural networks...
Neural networks...Molly Chugh
 
Supervised Learning
Supervised LearningSupervised Learning
Supervised Learningbutest
 
Neural network
Neural networkNeural network
Neural networkSilicon
 
Google's Multilingual Neural Machine Translation System
Google's Multilingual Neural Machine Translation SystemGoogle's Multilingual Neural Machine Translation System
Google's Multilingual Neural Machine Translation SystemNamHyuk Ahn
 
Iconic Translation: The Neural Frontier by John Tinsley (Iconic Translation M...
Iconic Translation: The Neural Frontier by John Tinsley (Iconic Translation M...Iconic Translation: The Neural Frontier by John Tinsley (Iconic Translation M...
Iconic Translation: The Neural Frontier by John Tinsley (Iconic Translation M...TAUS - The Language Data Network
 

Viewers also liked (14)

Radial Basis Function
Radial Basis FunctionRadial Basis Function
Radial Basis Function
 
Section5 Rbf
Section5 RbfSection5 Rbf
Section5 Rbf
 
Radial basis function network ppt bySheetal,Samreen and Dhanashri
Radial basis function network ppt bySheetal,Samreen and DhanashriRadial basis function network ppt bySheetal,Samreen and Dhanashri
Radial basis function network ppt bySheetal,Samreen and Dhanashri
 
Summariz3 개발기
Summariz3 개발기Summariz3 개발기
Summariz3 개발기
 
Introduction to Neural networks (under graduate course) Lecture 9 of 9
Introduction to Neural networks (under graduate course) Lecture 9 of 9Introduction to Neural networks (under graduate course) Lecture 9 of 9
Introduction to Neural networks (under graduate course) Lecture 9 of 9
 
Deep Learning for Machine Translation, by Satoshi Enoue, SYSTRAN
Deep Learning for Machine Translation, by Satoshi Enoue, SYSTRANDeep Learning for Machine Translation, by Satoshi Enoue, SYSTRAN
Deep Learning for Machine Translation, by Satoshi Enoue, SYSTRAN
 
Deep Learning for Machine Translation
Deep Learning for Machine TranslationDeep Learning for Machine Translation
Deep Learning for Machine Translation
 
Adaptive Resonance Theory
Adaptive Resonance TheoryAdaptive Resonance Theory
Adaptive Resonance Theory
 
Beyond the Hype of Neural Machine Translation, Diego Bartolome (tauyou) and G...
Beyond the Hype of Neural Machine Translation, Diego Bartolome (tauyou) and G...Beyond the Hype of Neural Machine Translation, Diego Bartolome (tauyou) and G...
Beyond the Hype of Neural Machine Translation, Diego Bartolome (tauyou) and G...
 
Neural networks...
Neural networks...Neural networks...
Neural networks...
 
Supervised Learning
Supervised LearningSupervised Learning
Supervised Learning
 
Neural network
Neural networkNeural network
Neural network
 
Google's Multilingual Neural Machine Translation System
Google's Multilingual Neural Machine Translation SystemGoogle's Multilingual Neural Machine Translation System
Google's Multilingual Neural Machine Translation System
 
Iconic Translation: The Neural Frontier by John Tinsley (Iconic Translation M...
Iconic Translation: The Neural Frontier by John Tinsley (Iconic Translation M...Iconic Translation: The Neural Frontier by John Tinsley (Iconic Translation M...
Iconic Translation: The Neural Frontier by John Tinsley (Iconic Translation M...
 

Similar to nn20160920ironhead

What is AI, Machine Learning, Neural Networks, Deep Learning and Data Science
What is AI, Machine Learning, Neural Networks, Deep Learning and Data ScienceWhat is AI, Machine Learning, Neural Networks, Deep Learning and Data Science
What is AI, Machine Learning, Neural Networks, Deep Learning and Data ScienceSom Shahapurkar
 
Lecture 3: Convolutional Neural Networks
Lecture 3: Convolutional Neural NetworksLecture 3: Convolutional Neural Networks
Lecture 3: Convolutional Neural NetworksMohamed Loey
 
Deep Neural Networks for Computer Vision
Deep Neural Networks for Computer VisionDeep Neural Networks for Computer Vision
Deep Neural Networks for Computer VisionAlex Conway
 
Deep Learning for Developers (October 2017)
Deep Learning for Developers (October 2017)Deep Learning for Developers (October 2017)
Deep Learning for Developers (October 2017)Julien SIMON
 
Machine Learning Tokyo - Deep Neural Networks for Video - NumberBoost
Machine Learning Tokyo - Deep Neural Networks for Video - NumberBoostMachine Learning Tokyo - Deep Neural Networks for Video - NumberBoost
Machine Learning Tokyo - Deep Neural Networks for Video - NumberBoostAlex Conway
 
4 Node.js Gotchas: What your ops team needs to know
4 Node.js Gotchas: What your ops team needs to know4 Node.js Gotchas: What your ops team needs to know
4 Node.js Gotchas: What your ops team needs to knowDynatrace
 
Using Bayesian Optimization to Tune Machine Learning Models
Using Bayesian Optimization to Tune Machine Learning ModelsUsing Bayesian Optimization to Tune Machine Learning Models
Using Bayesian Optimization to Tune Machine Learning ModelsScott Clark
 
Using Bayesian Optimization to Tune Machine Learning Models
Using Bayesian Optimization to Tune Machine Learning ModelsUsing Bayesian Optimization to Tune Machine Learning Models
Using Bayesian Optimization to Tune Machine Learning ModelsSigOpt
 
Back To The Future
Back To The FutureBack To The Future
Back To The FutureBill Scott
 
"The Future of Machine Learning & JavaScript"Asim Hussain
"The Future of Machine Learning & JavaScript"Asim Hussain"The Future of Machine Learning & JavaScript"Asim Hussain
"The Future of Machine Learning & JavaScript"Asim HussainJulia Cherniak
 
A close encounter_with_real_world_and_odd_perf_issues
A close encounter_with_real_world_and_odd_perf_issuesA close encounter_with_real_world_and_odd_perf_issues
A close encounter_with_real_world_and_odd_perf_issuesRiyaj Shamsudeen
 
Machine Learning and React Native
Machine Learning and React NativeMachine Learning and React Native
Machine Learning and React NativeRay Deck
 
Normal accidents and outpatient surgeries
Normal accidents and outpatient surgeriesNormal accidents and outpatient surgeries
Normal accidents and outpatient surgeriesJonathan Creasy
 
Rv defcon25 keeping an eye on mobile applications - mikhail sosonkin
Rv defcon25   keeping an eye on mobile applications - mikhail sosonkinRv defcon25   keeping an eye on mobile applications - mikhail sosonkin
Rv defcon25 keeping an eye on mobile applications - mikhail sosonkinreconvillage
 
Artem Melnytskyi "Friendly Сo-pilot as a Practical AI Application"
Artem Melnytskyi "Friendly Сo-pilot as a Practical AI Application"Artem Melnytskyi "Friendly Сo-pilot as a Practical AI Application"
Artem Melnytskyi "Friendly Сo-pilot as a Practical AI Application"LogeekNightUkraine
 
Siddha Ganju. Deep learning on mobile
Siddha Ganju. Deep learning on mobileSiddha Ganju. Deep learning on mobile
Siddha Ganju. Deep learning on mobileLviv Startup Club
 
Siddha Ganju, NVIDIA. Deep Learning for Mobile
Siddha Ganju, NVIDIA. Deep Learning for MobileSiddha Ganju, NVIDIA. Deep Learning for Mobile
Siddha Ganju, NVIDIA. Deep Learning for MobileIT Arena
 
[CB20] Vulnerabilities of Machine Learning Infrastructure by Sergey Gordeychik
[CB20] Vulnerabilities of Machine Learning Infrastructure by Sergey Gordeychik[CB20] Vulnerabilities of Machine Learning Infrastructure by Sergey Gordeychik
[CB20] Vulnerabilities of Machine Learning Infrastructure by Sergey GordeychikCODE BLUE
 
Full scan frenzy at amadeus
Full scan frenzy at amadeusFull scan frenzy at amadeus
Full scan frenzy at amadeusMongoDB
 

Similar to nn20160920ironhead (20)

What is AI, Machine Learning, Neural Networks, Deep Learning and Data Science
What is AI, Machine Learning, Neural Networks, Deep Learning and Data ScienceWhat is AI, Machine Learning, Neural Networks, Deep Learning and Data Science
What is AI, Machine Learning, Neural Networks, Deep Learning and Data Science
 
Lecture 3: Convolutional Neural Networks
Lecture 3: Convolutional Neural NetworksLecture 3: Convolutional Neural Networks
Lecture 3: Convolutional Neural Networks
 
Deep Neural Networks for Computer Vision
Deep Neural Networks for Computer VisionDeep Neural Networks for Computer Vision
Deep Neural Networks for Computer Vision
 
Deep Learning for Developers (October 2017)
Deep Learning for Developers (October 2017)Deep Learning for Developers (October 2017)
Deep Learning for Developers (October 2017)
 
Machine Learning Tokyo - Deep Neural Networks for Video - NumberBoost
Machine Learning Tokyo - Deep Neural Networks for Video - NumberBoostMachine Learning Tokyo - Deep Neural Networks for Video - NumberBoost
Machine Learning Tokyo - Deep Neural Networks for Video - NumberBoost
 
4 Node.js Gotchas: What your ops team needs to know
4 Node.js Gotchas: What your ops team needs to know4 Node.js Gotchas: What your ops team needs to know
4 Node.js Gotchas: What your ops team needs to know
 
Using Bayesian Optimization to Tune Machine Learning Models
Using Bayesian Optimization to Tune Machine Learning ModelsUsing Bayesian Optimization to Tune Machine Learning Models
Using Bayesian Optimization to Tune Machine Learning Models
 
Using Bayesian Optimization to Tune Machine Learning Models
Using Bayesian Optimization to Tune Machine Learning ModelsUsing Bayesian Optimization to Tune Machine Learning Models
Using Bayesian Optimization to Tune Machine Learning Models
 
Back To The Future
Back To The FutureBack To The Future
Back To The Future
 
"The Future of Machine Learning & JavaScript"Asim Hussain
"The Future of Machine Learning & JavaScript"Asim Hussain"The Future of Machine Learning & JavaScript"Asim Hussain
"The Future of Machine Learning & JavaScript"Asim Hussain
 
A close encounter_with_real_world_and_odd_perf_issues
A close encounter_with_real_world_and_odd_perf_issuesA close encounter_with_real_world_and_odd_perf_issues
A close encounter_with_real_world_and_odd_perf_issues
 
Machine Learning and React Native
Machine Learning and React NativeMachine Learning and React Native
Machine Learning and React Native
 
MySQL Monitoring 101
MySQL Monitoring 101MySQL Monitoring 101
MySQL Monitoring 101
 
Normal accidents and outpatient surgeries
Normal accidents and outpatient surgeriesNormal accidents and outpatient surgeries
Normal accidents and outpatient surgeries
 
Rv defcon25 keeping an eye on mobile applications - mikhail sosonkin
Rv defcon25   keeping an eye on mobile applications - mikhail sosonkinRv defcon25   keeping an eye on mobile applications - mikhail sosonkin
Rv defcon25 keeping an eye on mobile applications - mikhail sosonkin
 
Artem Melnytskyi "Friendly Сo-pilot as a Practical AI Application"
Artem Melnytskyi "Friendly Сo-pilot as a Practical AI Application"Artem Melnytskyi "Friendly Сo-pilot as a Practical AI Application"
Artem Melnytskyi "Friendly Сo-pilot as a Practical AI Application"
 
Siddha Ganju. Deep learning on mobile
Siddha Ganju. Deep learning on mobileSiddha Ganju. Deep learning on mobile
Siddha Ganju. Deep learning on mobile
 
Siddha Ganju, NVIDIA. Deep Learning for Mobile
Siddha Ganju, NVIDIA. Deep Learning for MobileSiddha Ganju, NVIDIA. Deep Learning for Mobile
Siddha Ganju, NVIDIA. Deep Learning for Mobile
 
[CB20] Vulnerabilities of Machine Learning Infrastructure by Sergey Gordeychik
[CB20] Vulnerabilities of Machine Learning Infrastructure by Sergey Gordeychik[CB20] Vulnerabilities of Machine Learning Infrastructure by Sergey Gordeychik
[CB20] Vulnerabilities of Machine Learning Infrastructure by Sergey Gordeychik
 
Full scan frenzy at amadeus
Full scan frenzy at amadeusFull scan frenzy at amadeus
Full scan frenzy at amadeus
 

nn20160920ironhead