Top Banner
Theano tutorial part 2 AACIMP 2015 Sergii Gavrylov
19

(Kpi summer school 2015) theano tutorial part2

Jan 22, 2017

Download

Science

Sergii Gavrylov
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: (Kpi summer school 2015) theano tutorial part2

Theano tutorialpart 2

AACIMP 2015Sergii Gavrylov

Page 2: (Kpi summer school 2015) theano tutorial part2

Overview● Brief recap

● Multivariate logistic regression

● Multilayer perceptron

● Convolution

● Convolutional neural network

● scan

● Recurrent neural network

Page 3: (Kpi summer school 2015) theano tutorial part2

Brief recap● Symbolic variables

● Functions

● Shared variables / updates

● Gradients

● Substitution

Page 4: (Kpi summer school 2015) theano tutorial part2

Computational graphX

+

Z

Y

● Code generation

● Symbolic differentiation

Page 5: (Kpi summer school 2015) theano tutorial part2

Multivariate logistic regression

0

1

2

3

softmax(x * W)

Page 6: (Kpi summer school 2015) theano tutorial part2

Multilayer perceptron

0

1

2

3

relu(x * W) softmax(x * W)

Page 7: (Kpi summer school 2015) theano tutorial part2

1D Convolution

Page 8: (Kpi summer school 2015) theano tutorial part2

1D Convolution

Page 9: (Kpi summer school 2015) theano tutorial part2

1D Convolution

Page 10: (Kpi summer school 2015) theano tutorial part2

1D Convolution

Page 11: (Kpi summer school 2015) theano tutorial part2

2D Convolution

filter =

Page 13: (Kpi summer school 2015) theano tutorial part2

ConvPoolLayer

Page 15: (Kpi summer school 2015) theano tutorial part2

Convolutional NN

deeplearning.net/tutorial/lenet.html

Page 16: (Kpi summer school 2015) theano tutorial part2

scan (Symbolic loop in theano)

Page 17: (Kpi summer school 2015) theano tutorial part2

Recurrent neural network

www.iro.umontreal.ca/~bengioy/dlbook/rnn.html

Page 18: (Kpi summer school 2015) theano tutorial part2

“Vanilla” RNN

www.iro.umontreal.ca/~bengioy/dlbook/rnn.html

Page 19: (Kpi summer school 2015) theano tutorial part2

Conclusion

● Theano has a lot of useful building blocks (convolution, scan).

● Theano supports both cpu and gpu backends.