backpropagation: a modular approach (torch nn)...backpropagation: a modular approach (torch nn)...

13
Backpropagation: A modular approach (Torch NN) Nando de Freitas

Upload: others

Post on 24-Aug-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Backpropagation: A modular approach (Torch NN)...Backpropagation: A modular approach (Torch NN) Nando de Freitas Outline of the lecture This lecture describes modular ways of formulating

Backpropagation: A modular approach(Torch NN)

Nando de Freitas

Page 2: Backpropagation: A modular approach (Torch NN)...Backpropagation: A modular approach (Torch NN) Nando de Freitas Outline of the lecture This lecture describes modular ways of formulating

Outline of the lectureThis lecture describes modular ways of formulating and learningdistributed representations of data. The objective is for you to learn:

How to specify models such as logistic regression in layers. How to formulate layers and loss criterions. How well formulated local rules results in correct global rules. How back-propagation works. How this manifests itself in Torch.

Page 3: Backpropagation: A modular approach (Torch NN)...Backpropagation: A modular approach (Torch NN) Nando de Freitas Outline of the lecture This lecture describes modular ways of formulating
Page 4: Backpropagation: A modular approach (Torch NN)...Backpropagation: A modular approach (Torch NN) Nando de Freitas Outline of the lecture This lecture describes modular ways of formulating

Derivative using the chain rule

Page 5: Backpropagation: A modular approach (Torch NN)...Backpropagation: A modular approach (Torch NN) Nando de Freitas Outline of the lecture This lecture describes modular ways of formulating

Layer specification

Page 6: Backpropagation: A modular approach (Torch NN)...Backpropagation: A modular approach (Torch NN) Nando de Freitas Outline of the lecture This lecture describes modular ways of formulating

Derivative via layer-specification

Page 7: Backpropagation: A modular approach (Torch NN)...Backpropagation: A modular approach (Torch NN) Nando de Freitas Outline of the lecture This lecture describes modular ways of formulating

Back-propagation algorithm

Page 8: Backpropagation: A modular approach (Torch NN)...Backpropagation: A modular approach (Torch NN) Nando de Freitas Outline of the lecture This lecture describes modular ways of formulating

Derivatives wrt to the input

Page 9: Backpropagation: A modular approach (Torch NN)...Backpropagation: A modular approach (Torch NN) Nando de Freitas Outline of the lecture This lecture describes modular ways of formulating

Logit Regression Model in Torch

Page 10: Backpropagation: A modular approach (Torch NN)...Backpropagation: A modular approach (Torch NN) Nando de Freitas Outline of the lecture This lecture describes modular ways of formulating

Loss criterion in Torch

Page 11: Backpropagation: A modular approach (Torch NN)...Backpropagation: A modular approach (Torch NN) Nando de Freitas Outline of the lecture This lecture describes modular ways of formulating

Derivatives closure in Torch

Page 12: Backpropagation: A modular approach (Torch NN)...Backpropagation: A modular approach (Torch NN) Nando de Freitas Outline of the lecture This lecture describes modular ways of formulating

Optimization in Torch

Page 13: Backpropagation: A modular approach (Torch NN)...Backpropagation: A modular approach (Torch NN) Nando de Freitas Outline of the lecture This lecture describes modular ways of formulating

Next lecture

In the next lecture, we consider a generalization of logistic regression,with many logistic units, called multi-layer perceptron (MLP) or feed-forward neural network.