neural networks and google tensor flow

26
Neural Networks and Google TensorFlow SHANNON MCCORMICK

Upload: shannon-mccormick

Post on 12-Jan-2017

270 views

Category:

Data & Analytics


0 download

TRANSCRIPT

Page 1: Neural networks and google tensor flow

Neural Networks and Google TensorFlowSHANNON MCCORMICK

Page 2: Neural networks and google tensor flow

Outline

Intro to Neural Networks Inspiration Basic explanation Practical applications

Google TensorFlow What is it? Basic Usage Examples

Page 3: Neural networks and google tensor flow

Neural Network Inspiration

Real Neurons Dendrites receive an input Based on input, axons output something to next neuron

Page 4: Neural networks and google tensor flow

Artificial Neural Networks Set of nodes connected by

directional lines representing weights Nodes represent mathematical

operations Weights learned by training

Page 5: Neural networks and google tensor flow

Linear Regression Example

No hidden layers Inputs * Weights = Output Weights selected that minimize the

error Great at modeling linear

relationships

Page 6: Neural networks and google tensor flow

Adding Hidden Layers

Add hidden layer(s) Input x Weights1 = Hidden

Layer Hidden Layer * Weights2 =

Output Weights selected to minimize

error Can model more complex

relationships

Page 7: Neural networks and google tensor flow

Learning weights

Back Propagation Errors are back propagated through the model Determines the errors at each neuron in the network

Gradient Descent Optimization method Determine how to change the weights Takes a step down gradient of the function

Iterative process

Page 8: Neural networks and google tensor flow
Page 9: Neural networks and google tensor flow

Other Architectures

Recurrent Neural Networks Output from first inputs fed back

into network Used to predict output on future

examples Text processing/prediction

Page 10: Neural networks and google tensor flow

Other Architectures

Convolutional Neural Networks Image processing/classification

Page 11: Neural networks and google tensor flow

Practical Applications

Pattern Recognition Image and text processing

Time series prediction Stock market and weather forecasting

Anomaly Detection Bank fraud

Signal Detection Noise filtering

Page 12: Neural networks and google tensor flow

Google TensorFlow Open source machine

learning library Released November 9, 2015

Page 13: Neural networks and google tensor flow

Features

Can be used on desktop, mobile, servers Linus or Mac OS X

GPU support on Linux Written in C++ with Python interface Excellent step by step tutorials and documentation Auto-differentiation Includes Tensorboard for graph visualization Active improvement and growth

Google cloud (March 2016) Distributed computing support (April 2016)

Page 14: Neural networks and google tensor flow

Basics

Data flow graph with nodes and edges Nodes: mathematical operations Edges: input/output relationship

between nodes Edges carry tensors

Tensors flow through the graph

Page 15: Neural networks and google tensor flow

Building a model

“TensorFlow programs are usually structured into a construction phase, that assembles a graph, and an execution phase that uses a session to execute ops in the graph.” - TensorFlow docs Define computation graph

Inputs, operations, outputs Symbolic representation of model

Run session Execute graph Fetch output

Page 16: Neural networks and google tensor flow

Simplest Example

6.0

7.0

mul

42

Page 17: Neural networks and google tensor flow

Simple Example

d e

add

f

Page 18: Neural networks and google tensor flow

More Complex Examples

MNIST data set 70,000 Handwritten digits 28x28 pixels

Used for benchmarking machine learning algorithms

input_data.py mnist.train = 55,000 mnist.validation = 5,000 mnist.test = 10,000

Page 19: Neural networks and google tensor flow

Softmax / Logistic Regression

Page 20: Neural networks and google tensor flow

accuracy = .9213

Page 21: Neural networks and google tensor flow

Neural Network Implementation

Page 22: Neural networks and google tensor flow
Page 23: Neural networks and google tensor flow

accuracy = .9657

Page 24: Neural networks and google tensor flow
Page 26: Neural networks and google tensor flow