SlideShare a Scribd company logo
1 of 24
LECTURE 1: INTRODUCTION TO
DEEP LEARNING
Practical deep learning
WHAT IS ARTIFICIAL
INTELLIGENCE?
Artificial intelligence is the ability of a computer to
perform tasks commonly associated with intelligent
beings.
WHAT IS MACHINE LEARNING?
Machine learning is the study of algorithms that learn
from examples and experience instead of relying on
hard-coded rules and make predictions on new data.
WHAT IS DEEP LEARNING?
Deep learning is a subfield of machine learning
focusing on learning data representations as
successive layers of increasingly meaningful
representations.
From: Wang & Raj: On the Origin of Deep Learning
MAIN TYPES OF MACHINE
LEARNING
MAIN TYPES OF MACHINE LEARNING
• Supervised learning
• Unsupervised learning
• Self-supervised
learning
• Reinforcement learning
cat
dog
MAIN TYPES OF MACHINE LEARNING
• Supervised learning
• Unsupervised learning
• Self-supervised
learning
• Reinforcement learning
MAIN TYPES OF MACHINE LEARNING
• Supervised learning
• Unsupervised learning
• Self-supervised
learning
• Reinforcement learning
Image from https://arxiv.org/abs/1710.10196
MAIN TYPES OF MACHINE LEARNING
• Supervised learning
• Unsupervised learning
• Self-supervised
learning
• Reinforcement learning
Animation from https://yanpanlau.github.io/2016/07/10/FlappyBird-
Keras.html
FUNDAMENTALS OF
MACHINE LEARNING
DATA
• Humans learn by observation
and unsupervised learning
 model of the world /
common sense reasoning
• Machine learning needs lots of
(labeled) data to compensate
• Tensors: generalization of matrices
to n dimensions (or rank, order, degree)
 1D tensor: vector
 2D tensor: matrix
 3D, 4D, 5D tensors
 numpy.ndarray(shape, dtype)
• Training – validation – test split (+
adversarial test)
• Minibatches
 small sets of input data used at a time
 usually processed independently
DATA
Image from:
https://arxiv.org/abs/1707.08945
MODEL – LEARNING/TRAINING –
INFERENCE
• parameters 𝜃 and hyperparameters
http://playground.tensorfl
ow.org/
OPTIMIZATION
• Mathematical optimization:
“the selection of a best element (with
regard to some criterion) from some
set of available alternatives”
(Wikipedia)
• Main types:
finite-step, iterative, heuristic By Rebecca Wilson (originally posted to Flickr as Vicariously) [CC BY 2.0], via Wikimedia
Commons
los
s
regularizati
on
• Learning as an optimization problem
• cost function:
OPTIMIZATION
Image from: Li et al. “Visualizing the Loss Landscape of Neural Nets”,
DEEP LEARNING
ANATOMY OF A DEEP NEURAL NETWORK
• Layers
• Input data and targets
• Loss function
• Optimizer
LAYERS
• Data processing modules
• Many different kinds exist
 densely connected
 convolutional
 recurrent
 pooling, flattening, merging,
normalization, etc.
• Input: one or more tensors
output: one or more tensors
• Usually have a state, encoded as
weights
 learned, initially random
• When combined, form a network or
a model
LOSS FUNCTION
• The quantity to be minimized (optimized) during
training
 the only thing the network cares about
 there might also be other metrics you care
about
• Common tasks have “standard” loss functions:
 mean squared error for regression
 binary cross-entropy for two-class
classification
 categorical cross-entropy for multi-class
classification
 etc.
ANATOMY OF A DEEP NEURAL NETWORK
DEEP LEARNING
FRAMEWORKS
DEEP LEARNING FRAMEWORKS
• Actually tools for defining static or
dynamic general-purpose
computational graphs
• Automatic differentiation
• Seamless CPU / GPU usage
 multi-GPU, distributed
• Python/numpy or R interfaces
 instead of C, C++, CUDA or HIP
• Open source
✕
x y 5
✕
+
+
DEEP LEARNING
FRAMEWORKS
• Keras is a high-level
neural networks API
we will use TensorFlow
as the compute backend
included in TensorFlow 2 as tf.keras
https://keras.io/ ,
https://www.tensorflow.org/guide/keras
• PyTorch is:
a GPU-based tensor library
an efficient library for dynamic neural networks
Kera
s
TensorFl
ow
Thea
no
CNT
K
PyTor
ch
MXN
et
Caffe
CUDA, cuDNN
HIP, MIOpen MKL, MKL-
DNN
GPUs CPUs
TF
Estimato
r
torch.
nn
Gluo
n
Lasag
ne

More Related Content

Similar to deep learning.pptx

Yann le cun
Yann le cunYann le cun
Yann le cunYandex
 
Machine Duping 101: Pwning Deep Learning Systems
Machine Duping 101: Pwning Deep Learning SystemsMachine Duping 101: Pwning Deep Learning Systems
Machine Duping 101: Pwning Deep Learning SystemsClarence Chio
 
Artificial Intelligence, Machine Learning and Deep Learning
Artificial Intelligence, Machine Learning and Deep LearningArtificial Intelligence, Machine Learning and Deep Learning
Artificial Intelligence, Machine Learning and Deep LearningSujit Pal
 
An Introduction to Deep Learning (May 2018)
An Introduction to Deep Learning (May 2018)An Introduction to Deep Learning (May 2018)
An Introduction to Deep Learning (May 2018)Julien SIMON
 
Introduction to deep learning
Introduction to deep learningIntroduction to deep learning
Introduction to deep learningAmr Rashed
 
An introduction to deep learning concepts
An introduction to deep learning conceptsAn introduction to deep learning concepts
An introduction to deep learning conceptsAmazon Web Services
 
An Introduction to Deep Learning
An Introduction to Deep LearningAn Introduction to Deep Learning
An Introduction to Deep LearningPoo Kuan Hoong
 
How Can Machine Learning Help Your Research Forward?
How Can Machine Learning Help Your Research Forward?How Can Machine Learning Help Your Research Forward?
How Can Machine Learning Help Your Research Forward?Wouter Deconinck
 
Big Data Malaysia - A Primer on Deep Learning
Big Data Malaysia - A Primer on Deep LearningBig Data Malaysia - A Primer on Deep Learning
Big Data Malaysia - A Primer on Deep LearningPoo Kuan Hoong
 
An Introduction to Deep Learning I AWS Dev Day 2018
An Introduction to Deep Learning I AWS Dev Day 2018An Introduction to Deep Learning I AWS Dev Day 2018
An Introduction to Deep Learning I AWS Dev Day 2018AWS Germany
 
An Introduction to Deep Learning (April 2018)
An Introduction to Deep Learning (April 2018)An Introduction to Deep Learning (April 2018)
An Introduction to Deep Learning (April 2018)Julien SIMON
 
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
 
Fundamental of deep learning
Fundamental of deep learningFundamental of deep learning
Fundamental of deep learningStanley Wang
 
Introduction to deep learning
Introduction to deep learningIntroduction to deep learning
Introduction to deep learningVishwas Lele
 
Object Oriented Programming Tutorial.pptx
Object Oriented Programming Tutorial.pptxObject Oriented Programming Tutorial.pptx
Object Oriented Programming Tutorial.pptxethiouniverse
 
AI for Everyone: Master the Basics
AI for Everyone: Master the BasicsAI for Everyone: Master the Basics
AI for Everyone: Master the BasicsStutty Srivastava
 
Deep learning summary
Deep learning summaryDeep learning summary
Deep learning summaryankit_ppt
 

Similar to deep learning.pptx (20)

Yann le cun
Yann le cunYann le cun
Yann le cun
 
Machine Duping 101: Pwning Deep Learning Systems
Machine Duping 101: Pwning Deep Learning SystemsMachine Duping 101: Pwning Deep Learning Systems
Machine Duping 101: Pwning Deep Learning Systems
 
Artificial Intelligence, Machine Learning and Deep Learning
Artificial Intelligence, Machine Learning and Deep LearningArtificial Intelligence, Machine Learning and Deep Learning
Artificial Intelligence, Machine Learning and Deep Learning
 
An Introduction to Deep Learning (May 2018)
An Introduction to Deep Learning (May 2018)An Introduction to Deep Learning (May 2018)
An Introduction to Deep Learning (May 2018)
 
Introduction to deep learning
Introduction to deep learningIntroduction to deep learning
Introduction to deep learning
 
lecun-01.ppt
lecun-01.pptlecun-01.ppt
lecun-01.ppt
 
An introduction to deep learning concepts
An introduction to deep learning conceptsAn introduction to deep learning concepts
An introduction to deep learning concepts
 
An Introduction to Deep Learning
An Introduction to Deep LearningAn Introduction to Deep Learning
An Introduction to Deep Learning
 
How Can Machine Learning Help Your Research Forward?
How Can Machine Learning Help Your Research Forward?How Can Machine Learning Help Your Research Forward?
How Can Machine Learning Help Your Research Forward?
 
Introduction to deep learning
Introduction to deep learningIntroduction to deep learning
Introduction to deep learning
 
Big Data Malaysia - A Primer on Deep Learning
Big Data Malaysia - A Primer on Deep LearningBig Data Malaysia - A Primer on Deep Learning
Big Data Malaysia - A Primer on Deep Learning
 
AlexNet
AlexNetAlexNet
AlexNet
 
An Introduction to Deep Learning I AWS Dev Day 2018
An Introduction to Deep Learning I AWS Dev Day 2018An Introduction to Deep Learning I AWS Dev Day 2018
An Introduction to Deep Learning I AWS Dev Day 2018
 
An Introduction to Deep Learning (April 2018)
An Introduction to Deep Learning (April 2018)An Introduction to Deep Learning (April 2018)
An Introduction to Deep Learning (April 2018)
 
Deep Learning Sample Class (Jon Lederman)
Deep Learning Sample Class (Jon Lederman)Deep Learning Sample Class (Jon Lederman)
Deep Learning Sample Class (Jon Lederman)
 
Fundamental of deep learning
Fundamental of deep learningFundamental of deep learning
Fundamental of deep learning
 
Introduction to deep learning
Introduction to deep learningIntroduction to deep learning
Introduction to deep learning
 
Object Oriented Programming Tutorial.pptx
Object Oriented Programming Tutorial.pptxObject Oriented Programming Tutorial.pptx
Object Oriented Programming Tutorial.pptx
 
AI for Everyone: Master the Basics
AI for Everyone: Master the BasicsAI for Everyone: Master the Basics
AI for Everyone: Master the Basics
 
Deep learning summary
Deep learning summaryDeep learning summary
Deep learning summary
 

Recently uploaded

TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17Celine George
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024Borja Sotomayor
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxCeline George
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSean M. Fox
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaEADTU
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMELOISARIVERA8
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismDabee Kamal
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxneillewis46
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptxPoojaSen20
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesPooky Knightsmith
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi RajagopalEADTU
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxAdelaideRefugio
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjMohammed Sikander
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSAnaAcapella
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFVivekanand Anglo Vedic Academy
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital ManagementMBA Assignment Experts
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 

Recently uploaded (20)

Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 

deep learning.pptx

  • 1. LECTURE 1: INTRODUCTION TO DEEP LEARNING Practical deep learning
  • 2. WHAT IS ARTIFICIAL INTELLIGENCE? Artificial intelligence is the ability of a computer to perform tasks commonly associated with intelligent beings.
  • 3. WHAT IS MACHINE LEARNING? Machine learning is the study of algorithms that learn from examples and experience instead of relying on hard-coded rules and make predictions on new data.
  • 4. WHAT IS DEEP LEARNING? Deep learning is a subfield of machine learning focusing on learning data representations as successive layers of increasingly meaningful representations.
  • 5. From: Wang & Raj: On the Origin of Deep Learning
  • 6. MAIN TYPES OF MACHINE LEARNING
  • 7. MAIN TYPES OF MACHINE LEARNING • Supervised learning • Unsupervised learning • Self-supervised learning • Reinforcement learning cat dog
  • 8. MAIN TYPES OF MACHINE LEARNING • Supervised learning • Unsupervised learning • Self-supervised learning • Reinforcement learning
  • 9. MAIN TYPES OF MACHINE LEARNING • Supervised learning • Unsupervised learning • Self-supervised learning • Reinforcement learning Image from https://arxiv.org/abs/1710.10196
  • 10. MAIN TYPES OF MACHINE LEARNING • Supervised learning • Unsupervised learning • Self-supervised learning • Reinforcement learning Animation from https://yanpanlau.github.io/2016/07/10/FlappyBird- Keras.html
  • 12. DATA • Humans learn by observation and unsupervised learning  model of the world / common sense reasoning • Machine learning needs lots of (labeled) data to compensate
  • 13. • Tensors: generalization of matrices to n dimensions (or rank, order, degree)  1D tensor: vector  2D tensor: matrix  3D, 4D, 5D tensors  numpy.ndarray(shape, dtype) • Training – validation – test split (+ adversarial test) • Minibatches  small sets of input data used at a time  usually processed independently DATA Image from: https://arxiv.org/abs/1707.08945
  • 14. MODEL – LEARNING/TRAINING – INFERENCE • parameters 𝜃 and hyperparameters http://playground.tensorfl ow.org/
  • 15. OPTIMIZATION • Mathematical optimization: “the selection of a best element (with regard to some criterion) from some set of available alternatives” (Wikipedia) • Main types: finite-step, iterative, heuristic By Rebecca Wilson (originally posted to Flickr as Vicariously) [CC BY 2.0], via Wikimedia Commons los s regularizati on • Learning as an optimization problem • cost function:
  • 16. OPTIMIZATION Image from: Li et al. “Visualizing the Loss Landscape of Neural Nets”,
  • 18. ANATOMY OF A DEEP NEURAL NETWORK • Layers • Input data and targets • Loss function • Optimizer
  • 19. LAYERS • Data processing modules • Many different kinds exist  densely connected  convolutional  recurrent  pooling, flattening, merging, normalization, etc. • Input: one or more tensors output: one or more tensors • Usually have a state, encoded as weights  learned, initially random • When combined, form a network or a model
  • 20. LOSS FUNCTION • The quantity to be minimized (optimized) during training  the only thing the network cares about  there might also be other metrics you care about • Common tasks have “standard” loss functions:  mean squared error for regression  binary cross-entropy for two-class classification  categorical cross-entropy for multi-class classification  etc.
  • 21. ANATOMY OF A DEEP NEURAL NETWORK
  • 23. DEEP LEARNING FRAMEWORKS • Actually tools for defining static or dynamic general-purpose computational graphs • Automatic differentiation • Seamless CPU / GPU usage  multi-GPU, distributed • Python/numpy or R interfaces  instead of C, C++, CUDA or HIP • Open source ✕ x y 5 ✕ + +
  • 24. DEEP LEARNING FRAMEWORKS • Keras is a high-level neural networks API we will use TensorFlow as the compute backend included in TensorFlow 2 as tf.keras https://keras.io/ , https://www.tensorflow.org/guide/keras • PyTorch is: a GPU-based tensor library an efficient library for dynamic neural networks Kera s TensorFl ow Thea no CNT K PyTor ch MXN et Caffe CUDA, cuDNN HIP, MIOpen MKL, MKL- DNN GPUs CPUs TF Estimato r torch. nn Gluo n Lasag ne