how machine learning is changing the world

30
How Machine Learning is Changing the World DEEP LEARNING WITH TENSORFLOW Emilio Garcia @unindanachado

Upload: emilio-garcia

Post on 12-Apr-2017

100 views

Category:

Software


1 download

TRANSCRIPT

Page 1: How machine learning is changing the world

How Machine Learning is Changing the WorldDEEP LEARNING WITH TENSORFLOW

Emilio Garcia@unindanachado

Page 3: How machine learning is changing the world

Agenda

● Motivation● Key concepts

○ AI, ML & DL● Brief revision on ANN

○ Neurons and Layers○ Activation and Loss Functions○ Optimization

● Deep Learning○ Convolutions○ Architectures

● TensorFlow Basis● Demo Time

Page 4: How machine learning is changing the world
Page 5: How machine learning is changing the world
Page 6: How machine learning is changing the world

Key Concepts

Artificial Intelligence

Machine Learning

Deep Learning

“any technique that enables computers to

mimic human intelligence"

“subset of AI that includes abstruse

statistical techniques that enable machines

to improve at tasks with experience"

“algorithms that permit software to train itself

to perform tasks”

Page 7: How machine learning is changing the world

Deep Learning = Convolutional Neural Networks

Page 8: How machine learning is changing the world

Little History of Neural Networks

1943: McCulloch, W. and Pitts, W. first introduced the idea of a neural network.

1958: Rosenblatt, F introduced backpropagation.

2006: Hinton, G provided a radical new way to train deep neural networks.

Today: Graphic Process Units allow programmers to train networks with several layers.

Page 9: How machine learning is changing the world

Float Array

A Typical Neural Network

Input Layer

Hidden Layers (black box)

Output Layer

[input pattern] [output pattern]

many different architectures define the interaction between the input and the

output layer

Float Array

[ -0.025, 0.23, 0.44 ] [ 0.712, 0.471 ]

Page 10: How machine learning is changing the world

Considerations

● Input data has to be normalized● Most types of ANNs don’t care about order in train data● Some others do care: BAM (Bidirectional Associative Memory)● Certain Types perform better in certain Problem Domains

Page 11: How machine learning is changing the world

Network Types & Problem Domains

Clust Regis Classif Predict Robot Vision Optim

Self-Organizing Map ●●● ● ●

Feedforward ●●● ●●● ●● ●● ●●

Boltzmann Machine ● ●●

Deep Belief Network ●●● ●● ●●

Deep Feedforward ●●● ●●● ●● ●●● ●●

Recurrent Network ●● ●● ●●● ●● ●

Convolutional Network ● ●●● ●●● ●●●

Deep Learning and Neural Networks (Jeff Heaton)

Page 12: How machine learning is changing the world

Node, Neuron, Unit

Input 1

Input 2

Input 3

Neuron

Activation Function

Output

Neuron output:

x: inputs

w: weights

: activation function

weight 1 weight 2 weight 3

Page 13: How machine learning is changing the world

Neuron Types

I1 I2 B1

B2

B3

N1

N1 N2

O1

N2

Input 1

Hidden1

Hidden2

Context1

Context2

Output1

w2w1

copycopy

w5

w3 w4

w6

Input

Output

BiasHidden

Context

Page 14: How machine learning is changing the world

Activation Functions

Linear Threshold

Also called transfer functions. They establish bounds for output of the neurons.

Some of the most popular include:

First used in the original perceptron (McCulloch & Pitts,

1943)

Commonly found in output layers of regression networks

Page 15: How machine learning is changing the world

Activation FunctionsSigmoid Hyperbolic Tangent

ReLU

Used to ensure that values are compressed between 0 and 1.

Values range from -1 to 1, mean remains 0. Antisymmetric AFs

yield faster convergence.

Linear, non-saturating function.

Page 16: How machine learning is changing the world

● Usually found in the output layer● Represents the probability that the input falls into each class

The Softmax Activation Function

i: index of the output neuron j: indexes of all neurons in the groupz: array of output neurons

Page 17: How machine learning is changing the world

Bias

● The weights of the neuron allow us to adjust the slope or shape of the activation function.

● Whereas Bias shift left/right the sigmoid curve.

f(x, 0.5, 0)f(x, 1.0, 0)f(x, 1.5, 0)

f(x, 1.0, 1.0)f(x, 1.0, 0.5)f(x, 1.0, 1.5)

Page 18: How machine learning is changing the world

What about convolutions?

“In image processing, a kernel, convolution matrix, or mask is a small matrix. It is useful for blurring, sharpening, embossing, edge

detection, and more. This is accomplished by means of convolution between a kernel and an image.”

-wikipedia-

Page 19: How machine learning is changing the world

What about convolutions?

Page 20: How machine learning is changing the world

What about convolutions?

Page 21: How machine learning is changing the world

What about convolutions?

Page 22: How machine learning is changing the world

What about convolutions?

Page 23: How machine learning is changing the world

Deep Convolutional Neural Network

Page 24: How machine learning is changing the world

Deep Convolutional Neural Network

13 Layer CNN - Alex Krizhevsky (2012)

22 Layer CNN - GoogLeNet: Inception v3 (2014)

Page 25: How machine learning is changing the world

Learning to Refine Object Segments - Pedro O. Pinheiro

DeepMask and SharpMask

Page 26: How machine learning is changing the world

Demo Time https://github.com/raphsoft/samples/tree/master/meetup/santex-deeplearning

Page 27: How machine learning is changing the world

Other Real-World Applications

● Self-Driving Cars● Medical Image Analysis● Bioinformatics● Industry:

○ Churn Prediction○ Sentimental Analysis○ Chatboots○ Recommendation Systems○ Financial Evaluation

● Politics● Security

Page 28: How machine learning is changing the world

Questions

Page 29: How machine learning is changing the world

Recommended Material & Contact Info

Pattern ClassificationRichard O. Duda

ISBN-13: 978-0471056690ISBN-10: 0471056693

Personal (Work and Academic):[email protected]@pucp.edu.pe

GRPIAA:http://inform.pucp.edu.pe/~grpiaa/ https://www.facebook.com/grpiaa

Page 30: How machine learning is changing the world

Thanks!

We support WarmiLab, join us!

https://www.facebook.com/WarmiLab