machine learning - eden au · supervised learning is the machine learning task of learning a...

65
Machine Learning Eden Au, James Fulton 1

Upload: others

Post on 15-Mar-2020

18 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Machine LearningEden Au, James Fulton

1

Page 2: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

https://prezi.com/p/wcvtw_0ssnyv/ 2

Page 3: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

3http://joelgrus.com/2013/06/09/post-prism-data-science-venn-diagram/

Page 4: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

4https://uk.mathworks.com/discovery/machine-learning.html

Page 5: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Supervised Learning

Page 6: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

“ Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs.

6

Page 7: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

7

Page 8: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

The Machine● Linear regression ● K-nearest neighbours ● Support Vector Machines ● Random Forest● Naïve bayes

8

Page 9: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

9Wikipedia

Page 10: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Linear Regression - Ordinary Least Squares1. Linearity (solved by feature engineering e.g. polynomial regression)2. Error-free inputs (solved by generalized least squares)3. Common variance (solved by weighted least squares)

10

Wikipedia

Page 11: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

K-nearest neighbours1. Inherently non-linear

(non-parametric)2. Simple3. Parameter selection4. High memory requirement -

slow prediction stage

11

Page 12: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Main Challenges - Feature Engineering

Shallow learning requires feature engineering

12

Page 13: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

ArtificialNeural Network

Page 14: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Neural NetworksEach layer consists of

1. Linear regression2. Non-linear ‘activation’

Multiple layers of network enables

1. Sophisticated features to be learned

Problem:

1. So many parameters - requires much more data

14

Page 15: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

ConvolutionalNeural Network

Page 16: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

CNN1. Leverages spatio-temporal

relationships2. Applies discrete convolution

operations3. Kernels are the only trainable

parameters - reduce # parameters

4. Insights in kernels:

16

Page 17: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Compressing and separatinginformation

The value of each pixel does not matter, the relationships among neighbouring pixels do.

17

Page 18: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

18

Page 19: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

19

Challenges

1. Data quality (GIGO)2. Data quantity (overfitting)3. Black box (neural networks)4. Feature engineering (for shallow learning)5. Domain expertise6. No guarantee

Page 20: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Unsupervised Learning

Page 21: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

“ Unsupervised machine learning algorithms infer patterns from data, without reference to known outcomes

21

What is the underlying structure?

Page 22: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

https://www.bbc.co.uk/news/science-environment-47267081https://xkcd.com/1838/

Page 23: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Anomaly Detection

Page 24: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

“ Can automatically discover unusual data points in your dataset

24

Page 25: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

25

Anomaly Detection: example

- Looking for misrecorded values

Credit: National Science Foundation

Page 26: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

26

Anomaly Detection: example

- Classifying extreme events

https://www.ncdc.noaa.gov/extremes/cei/definition

Page 27: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Clustering

Page 28: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

“ Allows you to automatically split the dataset into groups according to similarity

28

Page 29: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Clustering

29

Page 30: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

30

Clustering:Example

Antarctic ocean temperature profiles

Page 31: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

31

Clustering:Example

Antarctic ocean temperature profiles

Page 32: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

32

Clustering:Example

Antarctic ocean temperature profiles

Page 33: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Latent Variable Models

Page 34: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

“ Decomposing the dataset into multiple components

34

Page 35: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

35

Latent Variable Models

Page 36: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Non‑random correlation structures and dimensionality reduction in multivariate climate data - Martin Vejmelka et al. 36

Latent Variable Models: Example

Component Analysis

Page 37: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Autoencoder

Page 38: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

“ Tries to learn how to compress data down to the most important components

38

Page 39: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

39

Autoencoder:Basic Structure

Image Credit: https://www.jeremyjordan.me/autoencoders/

Page 40: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

40

Autoencoder:Application

Dimensionality reduction and finding ‘extreme’ weather events

Page 41: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Topic Modelling

Page 42: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

“ Latent variable models applied to text to boost your literature searches

42

Page 43: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

43

Page 44: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

44

Page 45: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Topic Modelling: Example

Finding the topics of active research and research network

structure

45

Page 46: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Causal Inference

Page 47: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

“What are the dynamics of the system? What drives what?

47

Page 48: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Causal Inference: Example

Finding direct and indirect teleconnections

48

Page 49: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Generative Adversarial Networks

Page 50: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

“ Learns the distribution function of data so that you can draw more unique samples

50

Page 51: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

51

GANs:What they do- Generator takes random

input and tries to create fake image

- Discriminator tries to tell difference between real and fake images

Page 52: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

https://thispersondoesnotexist.com/

52

GANs: Example

Generating new, unique examples using what the

network has discovered about the data set

Page 53: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

53

GANs: Example

Used to emulate a simulator

Page 54: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Opportunities/resources

Page 55: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

“ In data science, 80% of the time is spent preparing data with the remaining 20% spent complaining about the need to prepare data...

55

Page 56: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6
Page 57: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Questions?

Page 58: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Gaussian Processes

Page 59: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

“ Fit a statistical model with minimum assumptions which will return a value and an uncertainty in that value

59

Page 60: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

60

Gaussian Processes:

problem

Page 61: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Gaussian Processes:

problem

61

Page 62: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Gaussian Processes:

problem

62

Page 63: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Gaussian Processes:

example

Fitting model to fill gaps in data

63

Page 64: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Gaussian Processes:

exampleOptimising an expensive

experiment or physical model

64

Page 65: Machine Learning - Eden Au · Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. 6

Gaussian Processes:

example

65