Download presentation

Presentation is loading. Please wait.

Published byJayda Tollett Modified about 1 year ago

1
Neural Networks Slides from: Doug Gray, David Poole

2
What is a Neural Network? Information processing paradigm that is inspired by the way biological nervous systems, such as the brain, process informationInformation processing paradigm that is inspired by the way biological nervous systems, such as the brain, process information A method of computing, based on the interaction of multiple connected processing elementsA method of computing, based on the interaction of multiple connected processing elements

3
What can a Neural Net do? Compute a known function Approximate an unknown function Pattern Recognition Signal Processing Learn to do any of the above

4
Basic Concepts A Neural Network generally maps a set of inputs to a set of outputs A Neural Network generally maps a set of inputs to a set of outputs Number of inputs/outputs is variable The Network itself is composed of an arbitrary number of nodes with an arbitrary topology

5
Basic Concepts Definition of a node: Definition of a node: A node is an element which performs the functionA node is an element which performs the function y = f H (∑(w i x i ) + W b ) Node Connection

6
Properties Inputs are flexible any real values any real values Highly correlated or independent Highly correlated or independent Target function may be discrete-valued, real- valued, or vectors of discrete or real values Outputs are real numbers between 0 and 1 Outputs are real numbers between 0 and 1 Resistant to errors in the training data Long training time Fast evaluation The function produced can be difficult for humans to interpret

7
Perceptrons Basic unit in a neural network Linear separator Parts N inputs, x1... xn N inputs, x1... xn Weights for each input, w1... wn Weights for each input, w1... wn A bias input x0 (constant) and associated weight w0 A bias input x0 (constant) and associated weight w0 Weighted sum of inputs, y = w0x0 + w1x wnxn Weighted sum of inputs, y = w0x0 + w1x wnxn A threshold function (activation function), i.e 1 if y > 0, -1 if y 0, -1 if y <= 0

8
Diagram x1 x xn Σ Threshold y = Σ wixi x0 w0 w1 w2 wn 1 if y >0 -1 otherwise

9
Typical Activation Functions F(x) = 1 / (1 + e –x ) Using a nonlinear function which approximates a linear threshold allows a network to approximate nonlinear functions

10
Simple Perceptron Binary logic application f H (x) = u(x) [linear threshold] W i = random(-1,1) Y = u(W 0 X 0 + W 1 X 1 + W b ) Now how do we train it?

11
Basic Training Perception learning rule ΔW i = η * (D – Y) * X i η = Learning Rate D = Desired Output Adjust weights based on how well the current weights match an objective

12
Logic Training Expose the network to the logical OR operation Update the weights after each epoch As the output approaches the desired output for all cases, ΔW i will approach 0 X0X0X0X0 X1X1X1X1D

13
Results W0 W1 WbW0 W1 WbW0 W1 WbW0 W1 Wb

14
Details Network converges on a hyper-plane decision surface X 1 = (W 0 /W 1 )X 0 + (W b /W 1 ) X1X1X1X1 X0X0X0X0

15
Feed-forward neural networks Feed-forward neural networks are the most common models. These are directed acyclic graphs:

16
Neural Network for the news example

17
Axiomatizing the Network The values of the attributes are real numbers. Thirteen parameters w0; … ;w12 are real numbers. The attributes h1 and h2 correspond to the values of hidden units. There are 13 real numbers to be learned. The hypothesis space is thus a 13-dimensional real space. Each point in this 13-dimensional space corresponds to a particular logic program that predicts a value for reads given known, new, short, and home

18

19
Prediction Error

20
Neural Network Learning Aim of neural network learning: given a set of examples, find parameter settings that minimize the error. Back-propagation learning is gradient descent search through the parameter space to minimize the sum-of-squares error.

21
Backpropagation Learning Inputs: A network, including all units and their connections A network, including all units and their connections Stopping Criteria Stopping Criteria Learning Rate (constant of proportionality of gradient descent search) Learning Rate (constant of proportionality of gradient descent search) Initial values for the parameters Initial values for the parameters A set of classified training data A set of classified training data Output: Updated values for the parameters

22
Backpropagation Learning Algorithm Repeat evaluate the network on each example given the current parameter settings evaluate the network on each example given the current parameter settings determine the derivative of the error for each parameter determine the derivative of the error for each parameter change each parameter in proportion to its derivative change each parameter in proportion to its derivative until the stopping criteria is met

23
Gradient Descent for Neural Net Learning

24
Bias in neural networks and decision trees It’s easy for a neural network to represent “at least two of I 1, …, I k are true”: w 0 w 1 w k This concept forms a large decision tree. Consider representing a conditional: “If c then a else b”: Simple in a decision tree. Simple in a decision tree. Needs a complicated neural network to represent Needs a complicated neural network to represent (c ^ a) V (~c ^ b).

25
Neural Networks and Logic Meaning is attached to the input and output units. There is no a priori meaning associated with the hidden units. What the hidden units actually represent is something that’s learned.

Similar presentations

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google