39
Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

  • Upload
    others

  • View
    7

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

Machine Learning (AIMS) - MT 2018

0. (My) Introduction to ML

Varun Kanade

University of OxfordNovember 5, 2018

Page 2: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

Machine Learning in Action

(Using https://www.betafaceapi.com/demo.html)

1

Page 3: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

Machine Learning in Action

(Using https://www.betafaceapi.com/demo.html)

1

Page 4: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

Machine Learning in Action

(Using https://www.betafaceapi.com/demo.html)

1

Page 5: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

What is machine learning?

2

Page 6: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

What is machine learning?

2

Page 7: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

What is machine learning?

circa October 2016

2

Page 8: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

What is machine learning?

circa October 2016

2

Page 9: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

What is machine learning?

circa October 2017

3

Page 10: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

What is machine learning?

circa October 2017

3

Page 11: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

What is machine learning?

circa October 2017

3

Page 12: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

What is machine learning?

What is artificial intelligence?

‘‘Instead of trying to produce a programme tosimulate the adult mind, why not rather try toproduce one which simulates the child’s? If this werethen subjected to an appropriate course of educationone would obtain the adult brain.’’

Turing, A.M. (1950). Computing machinery and intelligence. Mind, 59, 433-460.

4

Page 13: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

What is machine learning?

What is artificial intelligence?

‘‘Instead of trying to produce a programme tosimulate the adult mind, why not rather try toproduce one which simulates the child’s? If this werethen subjected to an appropriate course of educationone would obtain the adult brain.’’

Turing, A.M. (1950). Computing machinery and intelligence. Mind, 59, 433-460.

4

Page 14: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

What is machine learning?

Definition by TomMitchell

A computer program is said to learn from experience E with respect tosome class of tasks T and performance measure P, if its performance attasks in T, as measured by P, improves with experience E.

Face Detection

I E : images (with bounding boxes) around faces

I T : given an image without boxes, put boxes around faces

I P : number of faces correctly identified

5

Page 15: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

What is machine learning?

Definition by TomMitchell

A computer program is said to learn from experience E with respect tosome class of tasks T and performance measure P, if its performance attasks in T, as measured by P, improves with experience E.

Face Detection

I E : images (with bounding boxes) around faces

I T : given an image without boxes, put boxes around faces

I P : number of faces correctly identified

5

Page 16: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

What is machine learning?

Definition by TomMitchell

A computer program is said to learn from experience E with respect tosome class of tasks T and performance measure P, if its performance attasks in T, as measured by P, improves with experience E.

Face Detection

I E : images (with bounding boxes) around faces

I T : given an image without boxes, put boxes around faces

I P : number of faces correctly identified

5

Page 17: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

What is machine learning?

Definition by TomMitchell

A computer program is said to learn from experience E with respect tosome class of tasks T and performance measure P, if its performance attasks in T, as measured by P, improves with experience E.

Face Detection

I E : images (with bounding boxes) around faces

I T : given an image without boxes, put boxes around faces

I P : number of faces correctly identified

5

Page 18: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

What is machine learning?

Definition by TomMitchell

A computer program is said to learn from experience E with respect tosome class of tasks T and performance measure P, if its performance attasks in T, as measured by P, improves with experience E.

Face Detection

I E : images (with bounding boxes) around faces

I T : given an image without boxes, put boxes around faces

I P : number of faces correctly identified

5

Page 19: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

Outline

Course Logistics

Some Machine Learning Applications

Page 20: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

Course Information

Websitewww.cs.ox.ac.uk/people/varun.kanade/teaching/ML-AIMS-MT2018/

LecturesMon-Thu: 10h30 - 12h30; Fri: 9h-11h (Lecture Room 7 all days)

PracticalsMon-Thu: 15h-17h (?)

Demonstrators: Philip Lazos, David Martínez

TextbooksKevin Murphy - Machine Learning: A Probabilistic PerspectiveI Online access through Bodleian library

Other posted online material

6

Page 21: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

A few last remarks about this course

4! As ML developed through various disciplines - CS, Stats,Neuroscience, Engineering, etc., there is no consistent usageof notation or even names among the textbooks. At timesyou may find inconsistencies even within a single textbook.

You will be required to read, both before and after the lectures. I will postsuggested reading on the website.

Resources:

I Wikipedia has many great articles about ML and background material

I Online videos: Andrew Ng on coursera, Nando de Freitas on youtube, etc.

I Many interesting blogs, podcasts, etc.

7

Page 22: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

NIPS Papers!

Advances in Neural Information Processing Systems 1988

8

Page 23: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

NIPS Papers!

Advances in Neural Information Processing Systems 1995

8

Page 24: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

NIPS Papers!

Advances in Neural Information Processing Systems 2000

8

Page 25: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

NIPS Papers!

Advances in Neural Information Processing Systems 2005

8

Page 26: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

NIPS Papers!

Advances in Neural Information Processing Systems 2009

8

Page 27: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

NIPS Papers!

Advances in Neural Information Processing Systems 2016

8

Page 28: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

NIPS Papers!

Advances in Neural Information Processing Systems 2017 [video]

8

Page 29: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

Outline

Course Logistics

Some Machine Learning Applications

Page 30: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

Application: Boston Housing Dataset

Numerical attributes

I Crime rate per capita

I Non-retail business fraction

I Nitric Oxide concentration

I Age of house

I Floor area

I Distance to city centre

I Number of rooms

Categorical attributes

I On the Charles river?

I Index of highway access (1-5)

Predict house cost

Source: UCI repository

9

Page 31: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

Application: Object Detection and Localisation

I 200-basic level categories

I Here: Six pictures containing airplanes and people

I Dataset contains over 400,000 images

I Imagenet competition (2010-)

I All recent successes through very deep neural networks!

10

Page 32: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

Supervised Learning

Training data has inputs x (numerical, categorical) as well as outputs y(target)

Regression: When the output is real-valued, e.g., housing price

Classification: Output is a category

I Binary classification: only two classes e.g., spam

I Multi-class classification: several classes e.g., object detection

11

Page 33: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

Unsupervised Learning : Genetic Data of European Populations

Source: Novembre et al., Nature (2008)

Experience (E)

Task (T)

Performance (P)

Dimensionality reduction - Map high-dimensional data to low dimensions

Clustering - group together individuals with similar genomes

12

Page 34: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

Unsupervised Learning : Genetic Data of European Populations

Source: Novembre et al., Nature (2008)

Experience (E)

Task (T)

Performance (P)

Dimensionality reduction - Map high-dimensional data to low dimensions

Clustering - group together individuals with similar genomes

12

Page 35: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

Unsupervised Learning : Genetic Data of European Populations

Source: Novembre et al., Nature (2008)

Experience (E)

Task (T)

Performance (P)

Dimensionality reduction - Map high-dimensional data to low dimensions

Clustering - group together individuals with similar genomes

12

Page 36: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

Unsupervised Learning : Group Similar News Articles

Group similar articles into categories such as politics, music, sport, etc.

In the dataset, there are no labels for the articles

13

Page 37: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

Active and Semi-Supervised Learning

Active Learning

I Initially all data is unlabelled

I Learning algorithm can ask a human to labelsome data

Semi-supervised Learning

I Limited labelled data, lots of unlabelled data

I How to use the two together to improvelearning?

14

Page 38: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

Collaborative Filtering : Recommender Systems

Movie / User Alice Bob Charlie Dean EveThe Shawshank Redemption 7 9 9 5 2

The Godfather 3 ? 10 4 3The Dark Knight 5 9 ? 6 ?Pulp Fiction ? 5 ? ? 10

Schindler’s List ? 6 ? 9 ?

Netflix competition to predict user-ratings (2008-09)

Any individual user will not have used most products

Most products will have been use by some individual

15

Page 39: Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML...Machine Learning (AIMS) - MT 2018 0. (My) Introduction to ML Varun Kanade University of Oxford November 5, 2018

Reinforcement Learning

I Automatic flying helicopter; self-driving cars

I Cannot conceivably program by hand

I Uncertain (stochastic) environment

I Must take sequential decisions

I Can define reward functions

I Fun: Playing Atari breakout! [video]

16