SlideShare a Scribd company logo
Intro	
  to	
  Neural	
  Networks	
  
Dean	
  Wya2e	
  
Boulder	
  Data	
  Science	
  
@drwya2e	
  
June	
  9,	
  2016	
  
Neural	
  Networks	
  
•  AI	
  summer	
  is	
  here!	
  
•  In	
  the	
  last	
  year	
  NNs	
  
have	
  	
  
–  ConFnued	
  SOA	
  
advancements	
  in	
  
image	
  and	
  speech	
  
recogniFon	
  
–  Beaten	
  a	
  human	
  player	
  
in	
  Go	
  
–  Provided	
  some	
  
quanFficaFon	
  of	
  “art”	
  
	
  
About	
  me	
  
•  100,000,000,000	
  neurons	
  
•  10,000	
  dendriFc	
  inputs	
  per	
  
neuron	
  
•  1	
  electrical	
  output	
  
How	
  does	
  your	
  brain	
  work?	
  
One	
  simple	
  abstracFon	
  
Dendri'c	
  
input	
  
Synap'c	
  
weights	
  
Soma	
   Axonal	
  output	
  
Digression	
  into	
  regression	
  
•  Linear	
  regression	
  
•  LogisFc	
  regression	
  
How	
  to	
  learn	
  the	
  weights?	
  
•  If	
  we	
  know	
  what	
  output	
  should	
  look	
  like,	
  can	
  
compute	
  error	
  and	
  update	
  weights	
  to	
  minimize	
  it	
  
–  OpFmizaFon	
  problem,	
  typically	
  use	
  gradient	
  descent	
  
_	
   Correct	
  output	
  
	
  
Output	
  
Error	
  
Gradient	
  descent	
  
•  Given	
  a	
  cost	
  funcFon	
  
– MSE	
  
– Cross-­‐entropy	
  
– etc.	
  
•  Can	
  take	
  step	
  in	
  opposite	
  direcFon	
  of	
  cost	
  
gradient	
  by	
  compuFng	
  derivaFve	
  w.r.t.	
  
weights	
  
•  Scale	
  by	
  learning	
  rate	
  (Fny	
  step)	
  
A	
  brief	
  history	
  of	
  neural	
  networks:	
  
The	
  Perceptron	
  
x1	
   x2	
   y	
  
0	
   0	
   0	
  
0	
   1	
   0	
  
1	
   0	
   0	
  
1	
   1	
   1	
  
~1960:	
  “The	
  perceptron”	
  
Universal	
  funcFon	
  approximator	
  
AND	
  
A	
  brief	
  history	
  of	
  neural	
  networks:	
  
The	
  Perceptron	
  
~1960:	
  “The	
  perceptron”	
  
Universal	
  funcFon	
  approximator	
  
x1	
   x2	
   y	
  
0	
   0	
   0	
  
0	
   1	
   1	
  
1	
   0	
   1	
  
1	
   1	
   0	
  
…but	
  only	
  if	
  funcFon	
  is	
  linearly	
  separable	
  
XOR	
  
?	
  
A	
  brief	
  history	
  of	
  neural	
  networks:	
  
The	
  Perceptron	
  
•  Neural	
  network	
  research	
  halts	
  	
  
(AI	
  winter)	
  
•  Meanwhile…	
  
–  Support	
  Vector	
  Machine	
  (SVM)	
  
invented,	
  solves	
  non-­‐linear	
  
problems	
  
•  Shif	
  toward	
  separaFon	
  of	
  feature	
  
representaFon	
  and	
  classificaFon	
  
–  Handcraf	
  the	
  best	
  features,	
  train	
  
the	
  SVM	
  (or	
  current	
  state-­‐of-­‐the-­‐
art)	
  to	
  do	
  the	
  classificaFon	
  
•  Eventually,	
  mulF-­‐layer	
  perceptron	
  
generalizaFon	
  realized,	
  solves	
  non-­‐linear	
  
problems	
  
–  Nobody	
  cares…	
  
A	
  brief	
  history	
  of	
  neural	
  networks:	
  
Next	
  ~30	
  years	
  	
  
h"ps://www.youtube.com/watch?v=3liCbRZPrZA	
  
Handcrafed	
  arFsanal	
  features	
  
•  Discovering	
  good	
  features	
  is	
  hard!	
  
–  Requires	
  a	
  lot	
  of	
  domain	
  knowledge	
  
–  State	
  of	
  the	
  art	
  in	
  computer	
  vision	
  was	
  the	
  culminaFon	
  of	
  years	
  of	
  
collaboraFon	
  between	
  computer	
  vision	
  scienFsts,	
  neuroscienFsts,	
  etc.	
  
•  Neural	
  networks	
  automaFcally	
  learn	
  features	
  (weights)	
  from	
  examples	
  
based	
  on	
  the	
  task	
  
–  Each	
  neuron	
  is	
  a	
  “feature	
  detector”	
  that	
  acFvates	
  proporFonately	
  to	
  how	
  
well	
  its	
  input	
  matches	
  its	
  weights	
  
–  Deep	
  learning:	
  Shif	
  back	
  from	
  hand-­‐crafed	
  features	
  to	
  features	
  learned	
  
from	
  task	
  
General	
  learning	
  methods	
  for	
  robust	
  feature	
  
representaFon	
  and	
  classificaFon	
  
Hidden	
  1	
   Hidden	
  2	
   Hidden	
  3	
  
•  Handful	
  of	
  researchers	
  sFll	
  toiling	
  away	
  on	
  neural	
  networks	
  with	
  li2le-­‐to-­‐no	
  
recogniFon	
  
–  2012:	
  one	
  grad	
  student	
  studying	
  how	
  to	
  implement	
  neural	
  networks	
  on	
  GPUs	
  submits	
  
first	
  “deep	
  learning”	
  architecture	
  to	
  image	
  recogniFon	
  challenge,	
  wins	
  by	
  a	
  landslide	
  
–  2013:	
  Almost	
  every	
  submission	
  the	
  is	
  a	
  deep	
  neural	
  network	
  executed	
  on	
  GPU	
  
(conFnuing	
  trend)	
  
A	
  brief	
  history	
  of	
  neural	
  networks:	
  
Deep	
  learning	
  bandwagon	
  
First	
  deep	
  neural	
  network	
  
•  8	
  layers	
  
•  650,000	
  “neurons”	
  (units)	
  
•  60,000,000	
  learned	
  parameters	
  
•  630,000,000	
  connecFons	
  
•  Uses	
  same	
  basic	
  algorithm	
  as	
  mulF-­‐layer	
  perceptron	
  to	
  learn	
  weights	
  
•  Finally	
  caught	
  on	
  because	
  
–  Can	
  do	
  it	
  “fast”	
  (~1	
  week	
  in	
  2012)	
  thanks	
  to	
  GPU-­‐based	
  computaFon	
  
–  Actually	
  works	
  and	
  with	
  less	
  overfikng	
  due	
  to	
  tricks	
  and	
  massive	
  amounts	
  of	
  data	
  
AlexNet	
  
AlexNet	
  	
  
96	
  11x11	
  pixel	
  filter	
  weights	
  learned	
  from	
  ImageNet	
  	
  
AlexNet	
  
Handcrafed	
  Textons	
  
Unseen	
  image	
  classificaFons	
  
Neural	
  Networks	
  in	
  2016	
  
•  Variety	
  of	
  libraries	
  that	
  specify	
  
inputs	
  as	
  tensor	
  minibatch	
  and	
  
automaFcally	
  compute	
  gradients	
  
–  Tensorflow	
  
–  Theano	
  (Keras/Lasagne)	
  
–  Torch	
  
•  Libraries	
  also	
  available	
  for	
  
common	
  Neural	
  Network	
  layer	
  
types	
  
–  ConvoluFonal,	
  acFvaFon,	
  pooling,	
  	
  
dropout,	
  RNN,	
  etc.	
  
•  Almost	
  too	
  easy	
  
–  Mind	
  the	
  danger	
  zone!	
  
Data	
  science	
  due	
  diligence	
  
“Neural	
  Networks	
  sound	
  awesome	
  and	
  will	
  solve	
  all	
  our	
  
problems!”	
  
	
  
•  Significant	
  investment	
  in	
  resources.	
  GPU	
  (TPU?)	
  cluster,	
  ramp-­‐up	
  
on	
  niche/rapidly-­‐evolving	
  tools	
  
•  Long	
  feedback	
  loop	
  for	
  architecture	
  improvement.	
  Typically	
  launch	
  
many	
  jobs	
  and	
  terminate	
  bad	
  models	
  (see	
  above)	
  
•  Need	
  a	
  lot	
  of	
  high-­‐dimensional	
  data	
  with	
  variability	
  (millions	
  of	
  
unique	
  observaFons	
  and/or	
  heavy	
  data	
  augmentaFon).	
  Delicate	
  
balance	
  of	
  increased	
  predicFve	
  power/overfikng	
  	
  
•  Hard	
  to	
  debug	
  when	
  not	
  working.	
  Millions	
  of	
  reasons	
  (literally)	
  a	
  
model	
  can	
  be	
  wrong,	
  few	
  ways	
  it	
  can	
  be	
  right.	
  “Black	
  magic”	
  
•  Deep	
  nonlinear	
  models	
  suffer	
  from	
  interpretability	
  issues.	
  Blackbox	
  
model	
  (although	
  acFve	
  research	
  here)	
  
Intro to Neural Networks
Thanks	
  
Manuel	
  Ruder,	
  Alexey	
  Dosovitskiy,	
  Thomas	
  Brox	
  (2016).	
  ArFsFc	
  style	
  transfer	
  for	
  videos.	
  
h2p://arxiv.org/abs/1604.08610	
  
h2ps://www.youtube.com/watch?v=Khuj4ASldmU	
  
Resources	
  
“This	
  is	
  cool,	
  but	
  I	
  don’t	
  (want	
  to)	
  code”	
  
h2p://playground.tensorflow.org	
  
“I	
  am	
  comfortable	
  with	
  the	
  SciPy	
  stack	
  
and	
  want	
  to	
  understand	
  more”	
  
	
  A	
  Neural	
  Network	
  in	
  11	
  lines	
  of	
  Python	
  
h2p://iamtrask.github.io/2015/07/12/basic-­‐python-­‐network/	
  
“I	
  am	
  comfortable	
  with	
  ML	
  libraries	
  and	
  
want	
  to	
  build	
  a	
  model”	
  
	
  MNIST	
  
•  Keras	
  
h2ps://github.com/fchollet/keras/blob/master/examples/
mnist_cnn.py	
  
•  Tensorflow	
  
h2ps://www.tensorflow.org/versions/r0.8/tutorials/mnist/pros/
index.html	
  
Varia'onal	
  Autoencoders	
  (also	
  using	
  MNIST)	
  
•  Keras	
  
h2p://blog.keras.io/building-­‐autoencoders-­‐in-­‐keras.html	
  
•  Tensorflow	
  
h2ps://jmetzen.github.io/2015-­‐11-­‐27/vae.html	
  

More Related Content

What's hot (20)

Neural Networks
Neural NetworksNeural Networks
Neural Networks
NikitaRuhela
 
Artificial Neural Network
Artificial Neural NetworkArtificial Neural Network
Artificial Neural Network
Prakash K
 
Deep learning
Deep learning Deep learning
Deep learning
Rajgupta258
 
Multi Layer Network
Multi Layer NetworkMulti Layer Network
Multi Layer Network
International Islamic University
 
Deep neural networks
Deep neural networksDeep neural networks
Deep neural networks
Si Haem
 
Multi-Layer Perceptrons
Multi-Layer PerceptronsMulti-Layer Perceptrons
Multi-Layer Perceptrons
ESCOM
 
Deep learning - A Visual Introduction
Deep learning - A Visual IntroductionDeep learning - A Visual Introduction
Deep learning - A Visual Introduction
Lukas Masuch
 
Artificial neural network for machine learning
Artificial neural network for machine learningArtificial neural network for machine learning
Artificial neural network for machine learning
grinu
 
Training Neural Networks
Training Neural NetworksTraining Neural Networks
Training Neural Networks
Databricks
 
Feedforward neural network
Feedforward neural networkFeedforward neural network
Feedforward neural network
Sopheaktra YONG
 
Perceptron & Neural Networks
Perceptron & Neural NetworksPerceptron & Neural Networks
Perceptron & Neural Networks
NAGUR SHAREEF SHAIK
 
Multilayer perceptron
Multilayer perceptronMultilayer perceptron
Multilayer perceptron
omaraldabash
 
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
sheetal katkar
 
Deep Learning Tutorial | Deep Learning Tutorial For Beginners | What Is Deep ...
Deep Learning Tutorial | Deep Learning Tutorial For Beginners | What Is Deep ...Deep Learning Tutorial | Deep Learning Tutorial For Beginners | What Is Deep ...
Deep Learning Tutorial | Deep Learning Tutorial For Beginners | What Is Deep ...
Simplilearn
 
Introduction to Neural Networks
Introduction to Neural NetworksIntroduction to Neural Networks
Introduction to Neural Networks
Databricks
 
AlexNet(ImageNet Classification with Deep Convolutional Neural Networks)
AlexNet(ImageNet Classification with Deep Convolutional Neural Networks)AlexNet(ImageNet Classification with Deep Convolutional Neural Networks)
AlexNet(ImageNet Classification with Deep Convolutional Neural Networks)
UMBC
 
What is Deep Learning?
What is Deep Learning?What is Deep Learning?
What is Deep Learning?
NVIDIA
 
Resnet
ResnetResnet
Resnet
ashwinjoseph95
 
backpropagation in neural networks
backpropagation in neural networksbackpropagation in neural networks
backpropagation in neural networks
Akash Goel
 
Image classification with Deep Neural Networks
Image classification with Deep Neural NetworksImage classification with Deep Neural Networks
Image classification with Deep Neural Networks
Yogendra Tamang
 
Artificial Neural Network
Artificial Neural NetworkArtificial Neural Network
Artificial Neural Network
Prakash K
 
Deep neural networks
Deep neural networksDeep neural networks
Deep neural networks
Si Haem
 
Multi-Layer Perceptrons
Multi-Layer PerceptronsMulti-Layer Perceptrons
Multi-Layer Perceptrons
ESCOM
 
Deep learning - A Visual Introduction
Deep learning - A Visual IntroductionDeep learning - A Visual Introduction
Deep learning - A Visual Introduction
Lukas Masuch
 
Artificial neural network for machine learning
Artificial neural network for machine learningArtificial neural network for machine learning
Artificial neural network for machine learning
grinu
 
Training Neural Networks
Training Neural NetworksTraining Neural Networks
Training Neural Networks
Databricks
 
Feedforward neural network
Feedforward neural networkFeedforward neural network
Feedforward neural network
Sopheaktra YONG
 
Multilayer perceptron
Multilayer perceptronMultilayer perceptron
Multilayer perceptron
omaraldabash
 
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
sheetal katkar
 
Deep Learning Tutorial | Deep Learning Tutorial For Beginners | What Is Deep ...
Deep Learning Tutorial | Deep Learning Tutorial For Beginners | What Is Deep ...Deep Learning Tutorial | Deep Learning Tutorial For Beginners | What Is Deep ...
Deep Learning Tutorial | Deep Learning Tutorial For Beginners | What Is Deep ...
Simplilearn
 
Introduction to Neural Networks
Introduction to Neural NetworksIntroduction to Neural Networks
Introduction to Neural Networks
Databricks
 
AlexNet(ImageNet Classification with Deep Convolutional Neural Networks)
AlexNet(ImageNet Classification with Deep Convolutional Neural Networks)AlexNet(ImageNet Classification with Deep Convolutional Neural Networks)
AlexNet(ImageNet Classification with Deep Convolutional Neural Networks)
UMBC
 
What is Deep Learning?
What is Deep Learning?What is Deep Learning?
What is Deep Learning?
NVIDIA
 
backpropagation in neural networks
backpropagation in neural networksbackpropagation in neural networks
backpropagation in neural networks
Akash Goel
 
Image classification with Deep Neural Networks
Image classification with Deep Neural NetworksImage classification with Deep Neural Networks
Image classification with Deep Neural Networks
Yogendra Tamang
 

Similar to Intro to Neural Networks (20)

Neural networks and deep learning
Neural networks and deep learningNeural networks and deep learning
Neural networks and deep learning
RADO7900
 
Neural Networks and Deep Learning Basics
Neural Networks and Deep Learning BasicsNeural Networks and Deep Learning Basics
Neural Networks and Deep Learning Basics
Jon Lederman
 
1.Introduction to Artificial Neural Networks.pptx
1.Introduction to Artificial Neural Networks.pptx1.Introduction to Artificial Neural Networks.pptx
1.Introduction to Artificial Neural Networks.pptx
salahidddin
 
1.Introduction to Artificial Neural Networks.pptx
1.Introduction to Artificial  Neural Networks.pptx1.Introduction to Artificial  Neural Networks.pptx
1.Introduction to Artificial Neural Networks.pptx
salahidddin
 
Deep Learning: Towards General Artificial Intelligence
Deep Learning: Towards General Artificial IntelligenceDeep Learning: Towards General Artificial Intelligence
Deep Learning: Towards General Artificial Intelligence
Rukshan Batuwita
 
Deep Learning Sample Class (Jon Lederman)
Deep Learning Sample Class (Jon Lederman)Deep Learning Sample Class (Jon Lederman)
Deep Learning Sample Class (Jon Lederman)
Jon Lederman
 
Introduction to deep learning
Introduction to deep learningIntroduction to deep learning
Introduction to deep learning
Abhishek Bhandwaldar
 
AINL 2016: Filchenkov
AINL 2016: FilchenkovAINL 2016: Filchenkov
AINL 2016: Filchenkov
Lidia Pivovarova
 
Introduction to deep learning
Introduction to deep learningIntroduction to deep learning
Introduction to deep learning
doppenhe
 
A Platform for Accelerating Machine Learning Applications
 A Platform for Accelerating Machine Learning Applications A Platform for Accelerating Machine Learning Applications
A Platform for Accelerating Machine Learning Applications
NVIDIA Taiwan
 
Neural network book. Interesting and precise
Neural network book. Interesting and preciseNeural network book. Interesting and precise
Neural network book. Interesting and precise
ShilpaMaratheSardesa
 
Deep Learning Jump Start
Deep Learning Jump StartDeep Learning Jump Start
Deep Learning Jump Start
Michele Toni
 
Intro to TensorFlow and PyTorch Workshop at Tubular Labs
Intro to TensorFlow and PyTorch Workshop at Tubular LabsIntro to TensorFlow and PyTorch Workshop at Tubular Labs
Intro to TensorFlow and PyTorch Workshop at Tubular Labs
Kendall
 
Automatic Attendace using convolutional neural network Face Recognition
Automatic Attendace using convolutional neural network Face RecognitionAutomatic Attendace using convolutional neural network Face Recognition
Automatic Attendace using convolutional neural network Face Recognition
vatsal199567
 
Deep Learning (DL) from Scratch
Deep Learning (DL) from ScratchDeep Learning (DL) from Scratch
Deep Learning (DL) from Scratch
Aziz416788
 
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
Simplilearn
 
Introduction to Deep Learning: Concepts, Architectures, and Applications
Introduction to Deep Learning: Concepts, Architectures, and ApplicationsIntroduction to Deep Learning: Concepts, Architectures, and Applications
Introduction to Deep Learning: Concepts, Architectures, and Applications
Amr Rashed
 
presentation of IntroductionDeepLearning.pptx
presentation of IntroductionDeepLearning.pptxpresentation of IntroductionDeepLearning.pptx
presentation of IntroductionDeepLearning.pptx
andani26
 
Deep Learning & Tensor flow: An Intro
Deep Learning & Tensor flow: An IntroDeep Learning & Tensor flow: An Intro
Deep Learning & Tensor flow: An Intro
Siby Jose Plathottam
 
Neural Networks
Neural NetworksNeural Networks
Neural Networks
Shahid Rajaee
 
Neural networks and deep learning
Neural networks and deep learningNeural networks and deep learning
Neural networks and deep learning
RADO7900
 
Neural Networks and Deep Learning Basics
Neural Networks and Deep Learning BasicsNeural Networks and Deep Learning Basics
Neural Networks and Deep Learning Basics
Jon Lederman
 
1.Introduction to Artificial Neural Networks.pptx
1.Introduction to Artificial Neural Networks.pptx1.Introduction to Artificial Neural Networks.pptx
1.Introduction to Artificial Neural Networks.pptx
salahidddin
 
1.Introduction to Artificial Neural Networks.pptx
1.Introduction to Artificial  Neural Networks.pptx1.Introduction to Artificial  Neural Networks.pptx
1.Introduction to Artificial Neural Networks.pptx
salahidddin
 
Deep Learning: Towards General Artificial Intelligence
Deep Learning: Towards General Artificial IntelligenceDeep Learning: Towards General Artificial Intelligence
Deep Learning: Towards General Artificial Intelligence
Rukshan Batuwita
 
Deep Learning Sample Class (Jon Lederman)
Deep Learning Sample Class (Jon Lederman)Deep Learning Sample Class (Jon Lederman)
Deep Learning Sample Class (Jon Lederman)
Jon Lederman
 
Introduction to deep learning
Introduction to deep learningIntroduction to deep learning
Introduction to deep learning
doppenhe
 
A Platform for Accelerating Machine Learning Applications
 A Platform for Accelerating Machine Learning Applications A Platform for Accelerating Machine Learning Applications
A Platform for Accelerating Machine Learning Applications
NVIDIA Taiwan
 
Neural network book. Interesting and precise
Neural network book. Interesting and preciseNeural network book. Interesting and precise
Neural network book. Interesting and precise
ShilpaMaratheSardesa
 
Deep Learning Jump Start
Deep Learning Jump StartDeep Learning Jump Start
Deep Learning Jump Start
Michele Toni
 
Intro to TensorFlow and PyTorch Workshop at Tubular Labs
Intro to TensorFlow and PyTorch Workshop at Tubular LabsIntro to TensorFlow and PyTorch Workshop at Tubular Labs
Intro to TensorFlow and PyTorch Workshop at Tubular Labs
Kendall
 
Automatic Attendace using convolutional neural network Face Recognition
Automatic Attendace using convolutional neural network Face RecognitionAutomatic Attendace using convolutional neural network Face Recognition
Automatic Attendace using convolutional neural network Face Recognition
vatsal199567
 
Deep Learning (DL) from Scratch
Deep Learning (DL) from ScratchDeep Learning (DL) from Scratch
Deep Learning (DL) from Scratch
Aziz416788
 
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
Simplilearn
 
Introduction to Deep Learning: Concepts, Architectures, and Applications
Introduction to Deep Learning: Concepts, Architectures, and ApplicationsIntroduction to Deep Learning: Concepts, Architectures, and Applications
Introduction to Deep Learning: Concepts, Architectures, and Applications
Amr Rashed
 
presentation of IntroductionDeepLearning.pptx
presentation of IntroductionDeepLearning.pptxpresentation of IntroductionDeepLearning.pptx
presentation of IntroductionDeepLearning.pptx
andani26
 
Deep Learning & Tensor flow: An Intro
Deep Learning & Tensor flow: An IntroDeep Learning & Tensor flow: An Intro
Deep Learning & Tensor flow: An Intro
Siby Jose Plathottam
 
Ad

Recently uploaded (20)

Thermodynamic concepts of zinc availability in soil and recent advances.pptx
Thermodynamic concepts of zinc availability in soil and recent advances.pptxThermodynamic concepts of zinc availability in soil and recent advances.pptx
Thermodynamic concepts of zinc availability in soil and recent advances.pptx
Archana Verma
 
Hydatid Cyst Disease (Echinococcosis).pptx
Hydatid Cyst Disease (Echinococcosis).pptxHydatid Cyst Disease (Echinococcosis).pptx
Hydatid Cyst Disease (Echinococcosis).pptx
AyuubMohamed6
 
Fetal Monitoring of 2nd yr ncm109 .pptx
Fetal Monitoring of 2nd yr ncm109  .pptxFetal Monitoring of 2nd yr ncm109  .pptx
Fetal Monitoring of 2nd yr ncm109 .pptx
JullianaPatriceAngel
 
The Role of Visualization in Genomics Data Analysis Workflows: The Interviews
The Role of Visualization in Genomics Data Analysis Workflows: The InterviewsThe Role of Visualization in Genomics Data Analysis Workflows: The Interviews
The Role of Visualization in Genomics Data Analysis Workflows: The Interviews
sehilyi
 
Glymphatic system dysfunction and neurodegeneration
Glymphatic system dysfunction and neurodegenerationGlymphatic system dysfunction and neurodegeneration
Glymphatic system dysfunction and neurodegeneration
KanakChaudhary10
 
Decipher the Magic of Quantum Entanglement.pdf
Decipher the Magic of Quantum Entanglement.pdfDecipher the Magic of Quantum Entanglement.pdf
Decipher the Magic of Quantum Entanglement.pdf
SaikatBasu37
 
Cerebrospinal Fluid Leakage Post-Lumbar Puncture: A Narrative Review
Cerebrospinal Fluid Leakage Post-Lumbar  Puncture: A Narrative ReviewCerebrospinal Fluid Leakage Post-Lumbar  Puncture: A Narrative Review
Cerebrospinal Fluid Leakage Post-Lumbar Puncture: A Narrative Review
karishmayjm
 
Grammar-Based 
Interactive Visualization of Genomics Data
Grammar-Based 
Interactive Visualization of Genomics DataGrammar-Based 
Interactive Visualization of Genomics Data
Grammar-Based 
Interactive Visualization of Genomics Data
sehilyi
 
Electric Circuit Simulation With QSPICE (IEEE Student Branch Workshop at OVGU...
Electric Circuit Simulation With QSPICE (IEEE Student Branch Workshop at OVGU...Electric Circuit Simulation With QSPICE (IEEE Student Branch Workshop at OVGU...
Electric Circuit Simulation With QSPICE (IEEE Student Branch Workshop at OVGU...
Mathias Magdowski
 
Infrared Spectroscopy - Chemistry Fundamental
Infrared Spectroscopy - Chemistry  FundamentalInfrared Spectroscopy - Chemistry  Fundamental
Infrared Spectroscopy - Chemistry Fundamental
MajidAhmadi34
 
Talk at INFN CCR Workshop on "Quantum Computing Simulation on FPGA"
Talk at INFN CCR Workshop on "Quantum Computing Simulation on FPGA"Talk at INFN CCR Workshop on "Quantum Computing Simulation on FPGA"
Talk at INFN CCR Workshop on "Quantum Computing Simulation on FPGA"
Mirko Mariotti
 
Insights to Narcotic Drugs by Urmila Nirmal
Insights to Narcotic Drugs by Urmila NirmalInsights to Narcotic Drugs by Urmila Nirmal
Insights to Narcotic Drugs by Urmila Nirmal
urvi1504nirmal
 
Anti epileptic drugs 2025.pptxjjnvgghbbvguiu
Anti epileptic drugs 2025.pptxjjnvgghbbvguiuAnti epileptic drugs 2025.pptxjjnvgghbbvguiu
Anti epileptic drugs 2025.pptxjjnvgghbbvguiu
sanjay030663
 
Skull of animals in veterinary medicine
Skull of animals in veterinary  medicineSkull of animals in veterinary  medicine
Skull of animals in veterinary medicine
mythi170320000
 
Learnable and Expressive Visualization Authoring through Blended Interfaces
Learnable and Expressive Visualization Authoring through Blended InterfacesLearnable and Expressive Visualization Authoring through Blended Interfaces
Learnable and Expressive Visualization Authoring through Blended Interfaces
sehilyi
 
Cytoskeleton__with_anno_1683089530723.pdf
Cytoskeleton__with_anno_1683089530723.pdfCytoskeleton__with_anno_1683089530723.pdf
Cytoskeleton__with_anno_1683089530723.pdf
raorajveer1612
 
Cardiorenal, Renocardiac, and Reno-CardioCardiac Syndromes: An Updated Review...
Cardiorenal, Renocardiac, and Reno-CardioCardiac Syndromes: An Updated Review...Cardiorenal, Renocardiac, and Reno-CardioCardiac Syndromes: An Updated Review...
Cardiorenal, Renocardiac, and Reno-CardioCardiac Syndromes: An Updated Review...
karishmayjm
 
Revision of the Proteaceae Macrofossil Record from Patagonia, Argentina
Revision of the Proteaceae Macrofossil Record from Patagonia, ArgentinaRevision of the Proteaceae Macrofossil Record from Patagonia, Argentina
Revision of the Proteaceae Macrofossil Record from Patagonia, Argentina
CynthiaGonzlez48
 
Mining Geology as Used in Exploration.pdf
Mining Geology as Used in Exploration.pdfMining Geology as Used in Exploration.pdf
Mining Geology as Used in Exploration.pdf
jehcintah
 
Chemistry Quick Notes By MdcatAcademy.com ..pdf
Chemistry Quick Notes By MdcatAcademy.com ..pdfChemistry Quick Notes By MdcatAcademy.com ..pdf
Chemistry Quick Notes By MdcatAcademy.com ..pdf
salimullahk05
 
Thermodynamic concepts of zinc availability in soil and recent advances.pptx
Thermodynamic concepts of zinc availability in soil and recent advances.pptxThermodynamic concepts of zinc availability in soil and recent advances.pptx
Thermodynamic concepts of zinc availability in soil and recent advances.pptx
Archana Verma
 
Hydatid Cyst Disease (Echinococcosis).pptx
Hydatid Cyst Disease (Echinococcosis).pptxHydatid Cyst Disease (Echinococcosis).pptx
Hydatid Cyst Disease (Echinococcosis).pptx
AyuubMohamed6
 
Fetal Monitoring of 2nd yr ncm109 .pptx
Fetal Monitoring of 2nd yr ncm109  .pptxFetal Monitoring of 2nd yr ncm109  .pptx
Fetal Monitoring of 2nd yr ncm109 .pptx
JullianaPatriceAngel
 
The Role of Visualization in Genomics Data Analysis Workflows: The Interviews
The Role of Visualization in Genomics Data Analysis Workflows: The InterviewsThe Role of Visualization in Genomics Data Analysis Workflows: The Interviews
The Role of Visualization in Genomics Data Analysis Workflows: The Interviews
sehilyi
 
Glymphatic system dysfunction and neurodegeneration
Glymphatic system dysfunction and neurodegenerationGlymphatic system dysfunction and neurodegeneration
Glymphatic system dysfunction and neurodegeneration
KanakChaudhary10
 
Decipher the Magic of Quantum Entanglement.pdf
Decipher the Magic of Quantum Entanglement.pdfDecipher the Magic of Quantum Entanglement.pdf
Decipher the Magic of Quantum Entanglement.pdf
SaikatBasu37
 
Cerebrospinal Fluid Leakage Post-Lumbar Puncture: A Narrative Review
Cerebrospinal Fluid Leakage Post-Lumbar  Puncture: A Narrative ReviewCerebrospinal Fluid Leakage Post-Lumbar  Puncture: A Narrative Review
Cerebrospinal Fluid Leakage Post-Lumbar Puncture: A Narrative Review
karishmayjm
 
Grammar-Based 
Interactive Visualization of Genomics Data
Grammar-Based 
Interactive Visualization of Genomics DataGrammar-Based 
Interactive Visualization of Genomics Data
Grammar-Based 
Interactive Visualization of Genomics Data
sehilyi
 
Electric Circuit Simulation With QSPICE (IEEE Student Branch Workshop at OVGU...
Electric Circuit Simulation With QSPICE (IEEE Student Branch Workshop at OVGU...Electric Circuit Simulation With QSPICE (IEEE Student Branch Workshop at OVGU...
Electric Circuit Simulation With QSPICE (IEEE Student Branch Workshop at OVGU...
Mathias Magdowski
 
Infrared Spectroscopy - Chemistry Fundamental
Infrared Spectroscopy - Chemistry  FundamentalInfrared Spectroscopy - Chemistry  Fundamental
Infrared Spectroscopy - Chemistry Fundamental
MajidAhmadi34
 
Talk at INFN CCR Workshop on "Quantum Computing Simulation on FPGA"
Talk at INFN CCR Workshop on "Quantum Computing Simulation on FPGA"Talk at INFN CCR Workshop on "Quantum Computing Simulation on FPGA"
Talk at INFN CCR Workshop on "Quantum Computing Simulation on FPGA"
Mirko Mariotti
 
Insights to Narcotic Drugs by Urmila Nirmal
Insights to Narcotic Drugs by Urmila NirmalInsights to Narcotic Drugs by Urmila Nirmal
Insights to Narcotic Drugs by Urmila Nirmal
urvi1504nirmal
 
Anti epileptic drugs 2025.pptxjjnvgghbbvguiu
Anti epileptic drugs 2025.pptxjjnvgghbbvguiuAnti epileptic drugs 2025.pptxjjnvgghbbvguiu
Anti epileptic drugs 2025.pptxjjnvgghbbvguiu
sanjay030663
 
Skull of animals in veterinary medicine
Skull of animals in veterinary  medicineSkull of animals in veterinary  medicine
Skull of animals in veterinary medicine
mythi170320000
 
Learnable and Expressive Visualization Authoring through Blended Interfaces
Learnable and Expressive Visualization Authoring through Blended InterfacesLearnable and Expressive Visualization Authoring through Blended Interfaces
Learnable and Expressive Visualization Authoring through Blended Interfaces
sehilyi
 
Cytoskeleton__with_anno_1683089530723.pdf
Cytoskeleton__with_anno_1683089530723.pdfCytoskeleton__with_anno_1683089530723.pdf
Cytoskeleton__with_anno_1683089530723.pdf
raorajveer1612
 
Cardiorenal, Renocardiac, and Reno-CardioCardiac Syndromes: An Updated Review...
Cardiorenal, Renocardiac, and Reno-CardioCardiac Syndromes: An Updated Review...Cardiorenal, Renocardiac, and Reno-CardioCardiac Syndromes: An Updated Review...
Cardiorenal, Renocardiac, and Reno-CardioCardiac Syndromes: An Updated Review...
karishmayjm
 
Revision of the Proteaceae Macrofossil Record from Patagonia, Argentina
Revision of the Proteaceae Macrofossil Record from Patagonia, ArgentinaRevision of the Proteaceae Macrofossil Record from Patagonia, Argentina
Revision of the Proteaceae Macrofossil Record from Patagonia, Argentina
CynthiaGonzlez48
 
Mining Geology as Used in Exploration.pdf
Mining Geology as Used in Exploration.pdfMining Geology as Used in Exploration.pdf
Mining Geology as Used in Exploration.pdf
jehcintah
 
Chemistry Quick Notes By MdcatAcademy.com ..pdf
Chemistry Quick Notes By MdcatAcademy.com ..pdfChemistry Quick Notes By MdcatAcademy.com ..pdf
Chemistry Quick Notes By MdcatAcademy.com ..pdf
salimullahk05
 
Ad

Intro to Neural Networks

  • 1. Intro  to  Neural  Networks   Dean  Wya2e   Boulder  Data  Science   @drwya2e   June  9,  2016  
  • 2. Neural  Networks   •  AI  summer  is  here!   •  In  the  last  year  NNs   have     –  ConFnued  SOA   advancements  in   image  and  speech   recogniFon   –  Beaten  a  human  player   in  Go   –  Provided  some   quanFficaFon  of  “art”    
  • 4. •  100,000,000,000  neurons   •  10,000  dendriFc  inputs  per   neuron   •  1  electrical  output   How  does  your  brain  work?  
  • 5. One  simple  abstracFon   Dendri'c   input   Synap'c   weights   Soma   Axonal  output  
  • 6. Digression  into  regression   •  Linear  regression   •  LogisFc  regression  
  • 7. How  to  learn  the  weights?   •  If  we  know  what  output  should  look  like,  can   compute  error  and  update  weights  to  minimize  it   –  OpFmizaFon  problem,  typically  use  gradient  descent   _   Correct  output     Output   Error  
  • 8. Gradient  descent   •  Given  a  cost  funcFon   – MSE   – Cross-­‐entropy   – etc.   •  Can  take  step  in  opposite  direcFon  of  cost   gradient  by  compuFng  derivaFve  w.r.t.   weights   •  Scale  by  learning  rate  (Fny  step)  
  • 9. A  brief  history  of  neural  networks:   The  Perceptron   x1   x2   y   0   0   0   0   1   0   1   0   0   1   1   1   ~1960:  “The  perceptron”   Universal  funcFon  approximator   AND  
  • 10. A  brief  history  of  neural  networks:   The  Perceptron   ~1960:  “The  perceptron”   Universal  funcFon  approximator  
  • 11. x1   x2   y   0   0   0   0   1   1   1   0   1   1   1   0   …but  only  if  funcFon  is  linearly  separable   XOR   ?   A  brief  history  of  neural  networks:   The  Perceptron  
  • 12. •  Neural  network  research  halts     (AI  winter)   •  Meanwhile…   –  Support  Vector  Machine  (SVM)   invented,  solves  non-­‐linear   problems   •  Shif  toward  separaFon  of  feature   representaFon  and  classificaFon   –  Handcraf  the  best  features,  train   the  SVM  (or  current  state-­‐of-­‐the-­‐ art)  to  do  the  classificaFon   •  Eventually,  mulF-­‐layer  perceptron   generalizaFon  realized,  solves  non-­‐linear   problems   –  Nobody  cares…   A  brief  history  of  neural  networks:   Next  ~30  years     h"ps://www.youtube.com/watch?v=3liCbRZPrZA  
  • 14. •  Discovering  good  features  is  hard!   –  Requires  a  lot  of  domain  knowledge   –  State  of  the  art  in  computer  vision  was  the  culminaFon  of  years  of   collaboraFon  between  computer  vision  scienFsts,  neuroscienFsts,  etc.   •  Neural  networks  automaFcally  learn  features  (weights)  from  examples   based  on  the  task   –  Each  neuron  is  a  “feature  detector”  that  acFvates  proporFonately  to  how   well  its  input  matches  its  weights   –  Deep  learning:  Shif  back  from  hand-­‐crafed  features  to  features  learned   from  task   General  learning  methods  for  robust  feature   representaFon  and  classificaFon   Hidden  1   Hidden  2   Hidden  3  
  • 15. •  Handful  of  researchers  sFll  toiling  away  on  neural  networks  with  li2le-­‐to-­‐no   recogniFon   –  2012:  one  grad  student  studying  how  to  implement  neural  networks  on  GPUs  submits   first  “deep  learning”  architecture  to  image  recogniFon  challenge,  wins  by  a  landslide   –  2013:  Almost  every  submission  the  is  a  deep  neural  network  executed  on  GPU   (conFnuing  trend)   A  brief  history  of  neural  networks:   Deep  learning  bandwagon   First  deep  neural  network  
  • 16. •  8  layers   •  650,000  “neurons”  (units)   •  60,000,000  learned  parameters   •  630,000,000  connecFons   •  Uses  same  basic  algorithm  as  mulF-­‐layer  perceptron  to  learn  weights   •  Finally  caught  on  because   –  Can  do  it  “fast”  (~1  week  in  2012)  thanks  to  GPU-­‐based  computaFon   –  Actually  works  and  with  less  overfikng  due  to  tricks  and  massive  amounts  of  data   AlexNet  
  • 17. AlexNet     96  11x11  pixel  filter  weights  learned  from  ImageNet     AlexNet   Handcrafed  Textons   Unseen  image  classificaFons  
  • 18. Neural  Networks  in  2016   •  Variety  of  libraries  that  specify   inputs  as  tensor  minibatch  and   automaFcally  compute  gradients   –  Tensorflow   –  Theano  (Keras/Lasagne)   –  Torch   •  Libraries  also  available  for   common  Neural  Network  layer   types   –  ConvoluFonal,  acFvaFon,  pooling,     dropout,  RNN,  etc.   •  Almost  too  easy   –  Mind  the  danger  zone!  
  • 19. Data  science  due  diligence   “Neural  Networks  sound  awesome  and  will  solve  all  our   problems!”     •  Significant  investment  in  resources.  GPU  (TPU?)  cluster,  ramp-­‐up   on  niche/rapidly-­‐evolving  tools   •  Long  feedback  loop  for  architecture  improvement.  Typically  launch   many  jobs  and  terminate  bad  models  (see  above)   •  Need  a  lot  of  high-­‐dimensional  data  with  variability  (millions  of   unique  observaFons  and/or  heavy  data  augmentaFon).  Delicate   balance  of  increased  predicFve  power/overfikng     •  Hard  to  debug  when  not  working.  Millions  of  reasons  (literally)  a   model  can  be  wrong,  few  ways  it  can  be  right.  “Black  magic”   •  Deep  nonlinear  models  suffer  from  interpretability  issues.  Blackbox   model  (although  acFve  research  here)  
  • 21. Thanks   Manuel  Ruder,  Alexey  Dosovitskiy,  Thomas  Brox  (2016).  ArFsFc  style  transfer  for  videos.   h2p://arxiv.org/abs/1604.08610   h2ps://www.youtube.com/watch?v=Khuj4ASldmU  
  • 23. “This  is  cool,  but  I  don’t  (want  to)  code”   h2p://playground.tensorflow.org  
  • 24. “I  am  comfortable  with  the  SciPy  stack   and  want  to  understand  more”    A  Neural  Network  in  11  lines  of  Python   h2p://iamtrask.github.io/2015/07/12/basic-­‐python-­‐network/  
  • 25. “I  am  comfortable  with  ML  libraries  and   want  to  build  a  model”    MNIST   •  Keras   h2ps://github.com/fchollet/keras/blob/master/examples/ mnist_cnn.py   •  Tensorflow   h2ps://www.tensorflow.org/versions/r0.8/tutorials/mnist/pros/ index.html   Varia'onal  Autoencoders  (also  using  MNIST)   •  Keras   h2p://blog.keras.io/building-­‐autoencoders-­‐in-­‐keras.html   •  Tensorflow   h2ps://jmetzen.github.io/2015-­‐11-­‐27/vae.html