deep learning with pytorch

14
Deep Learning without PhD, masters, graduation Mayur Bhangale StoreKey

Upload: mayur-bhangale

Post on 21-Jan-2018

241 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Deep Learning with PyTorch

Deep Learning without PhD, masters, graduation

Mayur Bhangale StoreKey

Page 2: Deep Learning with PyTorch

A Python based scientific computing package targeted at two sets of audiences:

• A replacement for numpy to use the power of GPUs • A deep learning research platform that provides maximum flexibility

and speed

Page 3: Deep Learning with PyTorch

Basics

Page 4: Deep Learning with PyTorch

Variables, Tensors, Autograd

Page 5: Deep Learning with PyTorch

Predictive models

Linear Regression

• Fit a line to a data set of observations • Use this line to predict unobserved values

Page 6: Deep Learning with PyTorch

Predictive models

Linear Regression

Input

x

Output

y

mx + c = y

Linear Function

10 20 100 200

1.3 1.2 4.5 4.8

Page 7: Deep Learning with PyTorch
Page 8: Deep Learning with PyTorch

Predictive models

Logistic Regression

• Predicts the probability of occurrence of an event by fitting data to a logit function.

• Used to predict a binary outcome (1 / 0, Yes / No, True / False) given a set of independent variables.

Page 9: Deep Learning with PyTorch

Predictive models

Logistic Regression

Inputx

Logits

y

mx + c = y

Linear Function

10 20

100 200

1.3 1.2 4.5 4.8

S = g(y)

SoftmaxFunction

g(y)

Softmax

0.1 0.1 0.4 0.4

D(S, L)

CrossEntropyFunction

0 0 1 1

L

True Labels

Page 10: Deep Learning with PyTorch

Predictive models

Input

x

Logits

y

Linear Function

SoftmaxFunction

g(y)

Softmax

D(S, L)

CrossEntropyFunction

Labels

L

True Labels

Readout LayerInput Layer Output Layer

Logistic Regression

Page 11: Deep Learning with PyTorch

Predictive models

Input

x

Logits

y

Linear Function

SoftmaxFunction

g(y)

Softmax

CrossEntropyFunction

Labels

L

True Labels

Readout LayerInput Layer Output Layer

ExampleSize: 784

Size: 10

Page 12: Deep Learning with PyTorch
Page 13: Deep Learning with PyTorch

Convolutional Neural Network

Page 14: Deep Learning with PyTorch

Thank you

Mayur Bhangale [email protected]

mayurbhangalemayurcb mayurbhangale