SlideShare a Scribd company logo
1 of 62
CM20315 - Machine
Learning
Prof. Simon Prince, Dr. Georgios Exarchakis and Dr. Andrew Barnes
1. Introduction
This is a VERY large lecture theatre. Please leave the back five rows empty!
CM20315 - Machine
Learning
Prof. Simon Prince, Dr. Georgios Exarchakis and Dr. Andrew Barnes
1. Introduction
Semester 1
Logistics
Semester 1
• 2 lectures per week
• 1 lab session per week
• 5 weeks / consolidation week / 5 weeks
• 1 coursework
• Set Monday 20th November
• Due Monday 4th December
• 1 exam (Jan/Feb) – closed book
• Lectures will be recorded
Feedback
• Please ask questions in the lectures – put your hand up
• There will be tutors to help in the labs and I will be present
• Via to your class representatives.
• You can ask questions on Moodle
• Please answer other people’s questions if you can!
• There is no such thing as a stupid question.
• Anonymous feedback to me via:
• https://forms.office.com/r/UjVD6Yzz01
Lab sessions
• Python notebooks in CoLab
• You will need a Google account (make one before tomorrow)
• Alternatively, set up Jupyter Notebooks yourself (but don’t)
• Numpy
• Matplotlib
• PyTorch
• Problem sheets
How to pass this course
• Ideas are simple, but build on one another
• Come to the lectures
• Come to the lab sessions
• Complete the Python notebooks
• Complete the problems
• Work together on non-assessed work
• Read the notes after the class
• Mark everything on Moodle as completed
• Ask questions on the Moodle forums
Book
Book
Book
Published 5th December 2023
Book
http://udlbook.com
Book
• Examinable unless specified
• Chapters 1-10,12
Book
• Examinable unless specified
• Chapters 1-10,12
• Not examinable unless specified
• Notes at end of chapters
• Chap 15
Supervised learning
• Define a mapping from input to output
• Learn this mapping from paired input/output data examples
• Univariate regression problem (one output, real value)
• Fully connected network
Regression
• Multivariate regression problem (>1 output, real value)
• Graph neural network
Graph regression
• Binary classification problem (two discrete classes)
• Transformer network
Text classification
• Multiclass classification problem (discrete classes, >2 possible values)
• Recurrent neural network (RNN)
Music genre classification
• Multiclass classification problem (discrete classes, >2 possible classes)
• Convolutional network
Image classification
What is a supervised learning model?
• An equation relating input (age) to output (height)
• Search through family of possible equations to find one that fits training data well
What is a supervised learning model?
• Deep neural networks are just a very flexible family of equations
• Fitting deep neural networks = “Deep Learning”
• Multivariate binary classification problem (many outputs, two discrete classes)
• Convolutional encoder-decoder network
Image segmentation
• Multivariate regression problem (many outputs, continuous)
• Convolutional encoder-decoder network
Depth estimation
• Multivariate regression problem (many outputs, continuous)
• Convolutional encoder-decoder network
Pose estimation
Terms
• Regression = continuous numbers as output
• Classification = discrete classes as output
• Two class and multiclass classification treated differently
• Univariate = one output
• Multivariate = more than one output
Translation
Image captioning
Image generation from text
What do these examples have in common?
• Very complex relationship between input and output
• Sometimes may be many possible valid answers
• But outputs (and sometimes inputs) obey rules
Language obeys
grammatical rules
Natural images also
have “rules”
Idea
• Learn the “grammar” of the data from unlabeled examples
• Can use a gargantuan amount of data to do this (as unlabeled)
• Make the supervised learning task earlier by having a lot of
knowledge of possible outputs
Unsupervised Learning
• Learning about a dataset without labels
• Clustering
• Finding outliers
• Generating new examples
• Filling in missing data
DeepCluster: Deep Clustering for Unsupervised Learning of Visual Features (Caron et al.,
DeepCluster: Deep Clustering for Unsupervised Learning of Visual Features (Caron et al.,
Unsupervised Learning
• Learning about a dataset without labels
• e.g., clustering
• Generative models can create examples
• e.g., generative adversarial networks
Unsupervised Learning
• Learning about a dataset without labels
• e.g., clustering
• Generative models can create examples
• e.g., generative adversarial networks
• PGMs learn distribution over data
• e.g., variational autoencoders,
• e.g., normalizing flows,
• e.g., diffusion models
Generative models
Generative models
Latent variables
Why should this work?
Interpolation
Conditional synthesis
Reinforcement learning
• A set of states
• A set of actions
• A set of rewards
• Goal: take actions to change the state so that you receive rewards
• You don’t receive any data – you have to explore the environment
yourself to gather data as you go
Example: chess
• States are valid states of the chess board
• Actions at a given time are valid possible moves
• Positive rewards for taking pieces, negative rewards for losing them
Example: chess
• States are valid states of the chess board
• Actions at a given time are valid possible moves
• Positive rewards for taking pieces, negative rewards for losing them
Why is this difficult?
• Stochastic
• Make the same move twice, the opponent might not do the same thing
• Rewards also stochastic (opponent does or doesn’t take your piece)
• Temporal credit assignment problem
• Did we get the reward because of this move? Or because we made good
tactical decisions somewhere in the past?
• Exploration-exploitation trade-off
• If we found a good opening, should we use this?
• Or should we try other things, hoping for something better?
Landmarks in Deep Learning
• 1958 Perceptron (Simple `neural’ model)
• 1986 Backpropagation (Practical Deep Neural networks)
• 1989 Convolutional networks (Supervised learning)
• 2012 AlexNet Image classification (Supervised learning)
• 2014 Generative adversarial networks (Unsupervised learning)
• 2014 Deep Q-Learning -- Atari games (Reinforcement learning)
• 2016 AlphaGo (Reinforcement learning)
• 2017 Machine translation (Supervised learning)
• 2019 Language models ((Un)supervised learning)
• 2022 Dall-E2 Image synthesis from text prompts ((Un)supervised learning)
• 2022 ChatGPT ((Un)supervised learning)
• 2023 GPT4 Multimodal model ((Un)supervised learning)
2018 Turing award winners
This course
Deep neural networks
How to train them
How to measure their performance
How to make that performance better
This course
Networks specialized to images
Image classification
Image segmentation
Pose estimation
This course
Networks specialized to text
Text generation
Automatic translation
ChatGPT
This course
Generative learning (unsupervised)
Generating random cats!
MAKE A GOOGLE/GMAIL ACCOUNT!
Feedback

More Related Content

Similar to CM20315_01_Intro_Machine_Learning_ap.pptx

Evolution of Deep Learning and new advancements
Evolution of Deep Learning and new advancementsEvolution of Deep Learning and new advancements
Evolution of Deep Learning and new advancementsChitta Ranjan
 
Unbreaking Your Django Application
Unbreaking Your Django ApplicationUnbreaking Your Django Application
Unbreaking Your Django ApplicationOSCON Byrum
 
Data science for advanced dummies
Data science for advanced dummiesData science for advanced dummies
Data science for advanced dummiesSaurav Chakravorty
 
Deep Learning, an interactive introduction for NLP-ers
Deep Learning, an interactive introduction for NLP-ersDeep Learning, an interactive introduction for NLP-ers
Deep Learning, an interactive introduction for NLP-ersRoelof Pieters
 
Neural Networks and Deep Learning Basics
Neural Networks and Deep Learning BasicsNeural Networks and Deep Learning Basics
Neural Networks and Deep Learning BasicsJon Lederman
 
Deep learning: the future of recommendations
Deep learning: the future of recommendationsDeep learning: the future of recommendations
Deep learning: the future of recommendationsBalázs Hidasi
 
To bag, or to boost? A question of balance
To bag, or to boost? A question of balanceTo bag, or to boost? A question of balance
To bag, or to boost? A question of balanceAlex Henderson
 
Deep Learning, Where Are You Going?
Deep Learning, Where Are You Going?Deep Learning, Where Are You Going?
Deep Learning, Where Are You Going?NAVER Engineering
 
DEF CON 24 - Clarence Chio - machine duping 101
DEF CON 24 - Clarence Chio - machine duping 101DEF CON 24 - Clarence Chio - machine duping 101
DEF CON 24 - Clarence Chio - machine duping 101Felipe Prado
 
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
 
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
 
Predicting Gene Loss in Plants: Lessons Learned From Laptop-Scale Data
Predicting Gene Loss in Plants: Lessons Learned From Laptop-Scale DataPredicting Gene Loss in Plants: Lessons Learned From Laptop-Scale Data
Predicting Gene Loss in Plants: Lessons Learned From Laptop-Scale Dataphilippbayer
 
Artificial Intelligence: Knowledge Acquisition
Artificial Intelligence: Knowledge AcquisitionArtificial Intelligence: Knowledge Acquisition
Artificial Intelligence: Knowledge AcquisitionThe Integral Worm
 
Teaching Constraint Programming, Patrick Prosser
Teaching Constraint Programming,  Patrick ProsserTeaching Constraint Programming,  Patrick Prosser
Teaching Constraint Programming, Patrick ProsserPierre Schaus
 
Deep Learning in Recommender Systems - RecSys Summer School 2017
Deep Learning in Recommender Systems - RecSys Summer School 2017Deep Learning in Recommender Systems - RecSys Summer School 2017
Deep Learning in Recommender Systems - RecSys Summer School 2017Balázs Hidasi
 

Similar to CM20315_01_Intro_Machine_Learning_ap.pptx (20)

Evolution of Deep Learning and new advancements
Evolution of Deep Learning and new advancementsEvolution of Deep Learning and new advancements
Evolution of Deep Learning and new advancements
 
Unbreaking Your Django Application
Unbreaking Your Django ApplicationUnbreaking Your Django Application
Unbreaking Your Django Application
 
Data science for advanced dummies
Data science for advanced dummiesData science for advanced dummies
Data science for advanced dummies
 
Deep Learning, an interactive introduction for NLP-ers
Deep Learning, an interactive introduction for NLP-ersDeep Learning, an interactive introduction for NLP-ers
Deep Learning, an interactive introduction for NLP-ers
 
Neural Networks and Deep Learning Basics
Neural Networks and Deep Learning BasicsNeural Networks and Deep Learning Basics
Neural Networks and Deep Learning Basics
 
Deep learning - a primer
Deep learning - a primerDeep learning - a primer
Deep learning - a primer
 
Deep learning - a primer
Deep learning - a primerDeep learning - a primer
Deep learning - a primer
 
Deep learning: the future of recommendations
Deep learning: the future of recommendationsDeep learning: the future of recommendations
Deep learning: the future of recommendations
 
To bag, or to boost? A question of balance
To bag, or to boost? A question of balanceTo bag, or to boost? A question of balance
To bag, or to boost? A question of balance
 
L&M wk 2
L&M wk 2L&M wk 2
L&M wk 2
 
Deep Learning, Where Are You Going?
Deep Learning, Where Are You Going?Deep Learning, Where Are You Going?
Deep Learning, Where Are You Going?
 
DEF CON 24 - Clarence Chio - machine duping 101
DEF CON 24 - Clarence Chio - machine duping 101DEF CON 24 - Clarence Chio - machine duping 101
DEF CON 24 - Clarence Chio - machine duping 101
 
Deep Learning Sample Class (Jon Lederman)
Deep Learning Sample Class (Jon Lederman)Deep Learning Sample Class (Jon Lederman)
Deep Learning Sample Class (Jon Lederman)
 
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
 
Predicting Gene Loss in Plants: Lessons Learned From Laptop-Scale Data
Predicting Gene Loss in Plants: Lessons Learned From Laptop-Scale DataPredicting Gene Loss in Plants: Lessons Learned From Laptop-Scale Data
Predicting Gene Loss in Plants: Lessons Learned From Laptop-Scale Data
 
Artificial Intelligence: Knowledge Acquisition
Artificial Intelligence: Knowledge AcquisitionArtificial Intelligence: Knowledge Acquisition
Artificial Intelligence: Knowledge Acquisition
 
Teaching Constraint Programming, Patrick Prosser
Teaching Constraint Programming,  Patrick ProsserTeaching Constraint Programming,  Patrick Prosser
Teaching Constraint Programming, Patrick Prosser
 
Deep Learning in Recommender Systems - RecSys Summer School 2017
Deep Learning in Recommender Systems - RecSys Summer School 2017Deep Learning in Recommender Systems - RecSys Summer School 2017
Deep Learning in Recommender Systems - RecSys Summer School 2017
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
 
Neural networks
Neural networksNeural networks
Neural networks
 

Recently uploaded

SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 

Recently uploaded (20)

SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 

CM20315_01_Intro_Machine_Learning_ap.pptx

  • 1. CM20315 - Machine Learning Prof. Simon Prince, Dr. Georgios Exarchakis and Dr. Andrew Barnes 1. Introduction This is a VERY large lecture theatre. Please leave the back five rows empty!
  • 2. CM20315 - Machine Learning Prof. Simon Prince, Dr. Georgios Exarchakis and Dr. Andrew Barnes 1. Introduction
  • 3.
  • 4.
  • 5.
  • 6.
  • 8. Logistics Semester 1 • 2 lectures per week • 1 lab session per week • 5 weeks / consolidation week / 5 weeks • 1 coursework • Set Monday 20th November • Due Monday 4th December • 1 exam (Jan/Feb) – closed book • Lectures will be recorded
  • 9. Feedback • Please ask questions in the lectures – put your hand up • There will be tutors to help in the labs and I will be present • Via to your class representatives. • You can ask questions on Moodle • Please answer other people’s questions if you can! • There is no such thing as a stupid question. • Anonymous feedback to me via: • https://forms.office.com/r/UjVD6Yzz01
  • 10. Lab sessions • Python notebooks in CoLab • You will need a Google account (make one before tomorrow) • Alternatively, set up Jupyter Notebooks yourself (but don’t) • Numpy • Matplotlib • PyTorch • Problem sheets
  • 11. How to pass this course • Ideas are simple, but build on one another • Come to the lectures • Come to the lab sessions • Complete the Python notebooks • Complete the problems • Work together on non-assessed work • Read the notes after the class • Mark everything on Moodle as completed • Ask questions on the Moodle forums
  • 12. Book
  • 13. Book
  • 16.
  • 17.
  • 18. Book • Examinable unless specified • Chapters 1-10,12
  • 19. Book • Examinable unless specified • Chapters 1-10,12 • Not examinable unless specified • Notes at end of chapters • Chap 15
  • 20.
  • 21. Supervised learning • Define a mapping from input to output • Learn this mapping from paired input/output data examples
  • 22. • Univariate regression problem (one output, real value) • Fully connected network Regression
  • 23. • Multivariate regression problem (>1 output, real value) • Graph neural network Graph regression
  • 24. • Binary classification problem (two discrete classes) • Transformer network Text classification
  • 25. • Multiclass classification problem (discrete classes, >2 possible values) • Recurrent neural network (RNN) Music genre classification
  • 26. • Multiclass classification problem (discrete classes, >2 possible classes) • Convolutional network Image classification
  • 27. What is a supervised learning model? • An equation relating input (age) to output (height) • Search through family of possible equations to find one that fits training data well
  • 28. What is a supervised learning model? • Deep neural networks are just a very flexible family of equations • Fitting deep neural networks = “Deep Learning”
  • 29. • Multivariate binary classification problem (many outputs, two discrete classes) • Convolutional encoder-decoder network Image segmentation
  • 30. • Multivariate regression problem (many outputs, continuous) • Convolutional encoder-decoder network Depth estimation
  • 31. • Multivariate regression problem (many outputs, continuous) • Convolutional encoder-decoder network Pose estimation
  • 32. Terms • Regression = continuous numbers as output • Classification = discrete classes as output • Two class and multiclass classification treated differently • Univariate = one output • Multivariate = more than one output
  • 36. What do these examples have in common? • Very complex relationship between input and output • Sometimes may be many possible valid answers • But outputs (and sometimes inputs) obey rules Language obeys grammatical rules Natural images also have “rules”
  • 37. Idea • Learn the “grammar” of the data from unlabeled examples • Can use a gargantuan amount of data to do this (as unlabeled) • Make the supervised learning task earlier by having a lot of knowledge of possible outputs
  • 38.
  • 39. Unsupervised Learning • Learning about a dataset without labels • Clustering • Finding outliers • Generating new examples • Filling in missing data
  • 40. DeepCluster: Deep Clustering for Unsupervised Learning of Visual Features (Caron et al.,
  • 41. DeepCluster: Deep Clustering for Unsupervised Learning of Visual Features (Caron et al.,
  • 42. Unsupervised Learning • Learning about a dataset without labels • e.g., clustering • Generative models can create examples • e.g., generative adversarial networks
  • 43. Unsupervised Learning • Learning about a dataset without labels • e.g., clustering • Generative models can create examples • e.g., generative adversarial networks • PGMs learn distribution over data • e.g., variational autoencoders, • e.g., normalizing flows, • e.g., diffusion models
  • 50.
  • 51.
  • 52. Reinforcement learning • A set of states • A set of actions • A set of rewards • Goal: take actions to change the state so that you receive rewards • You don’t receive any data – you have to explore the environment yourself to gather data as you go
  • 53. Example: chess • States are valid states of the chess board • Actions at a given time are valid possible moves • Positive rewards for taking pieces, negative rewards for losing them
  • 54. Example: chess • States are valid states of the chess board • Actions at a given time are valid possible moves • Positive rewards for taking pieces, negative rewards for losing them
  • 55. Why is this difficult? • Stochastic • Make the same move twice, the opponent might not do the same thing • Rewards also stochastic (opponent does or doesn’t take your piece) • Temporal credit assignment problem • Did we get the reward because of this move? Or because we made good tactical decisions somewhere in the past? • Exploration-exploitation trade-off • If we found a good opening, should we use this? • Or should we try other things, hoping for something better?
  • 56. Landmarks in Deep Learning • 1958 Perceptron (Simple `neural’ model) • 1986 Backpropagation (Practical Deep Neural networks) • 1989 Convolutional networks (Supervised learning) • 2012 AlexNet Image classification (Supervised learning) • 2014 Generative adversarial networks (Unsupervised learning) • 2014 Deep Q-Learning -- Atari games (Reinforcement learning) • 2016 AlphaGo (Reinforcement learning) • 2017 Machine translation (Supervised learning) • 2019 Language models ((Un)supervised learning) • 2022 Dall-E2 Image synthesis from text prompts ((Un)supervised learning) • 2022 ChatGPT ((Un)supervised learning) • 2023 GPT4 Multimodal model ((Un)supervised learning)
  • 57. 2018 Turing award winners
  • 58. This course Deep neural networks How to train them How to measure their performance How to make that performance better
  • 59. This course Networks specialized to images Image classification Image segmentation Pose estimation
  • 60. This course Networks specialized to text Text generation Automatic translation ChatGPT
  • 61. This course Generative learning (unsupervised) Generating random cats!
  • 62. MAKE A GOOGLE/GMAIL ACCOUNT! Feedback