Docsity

Multilayer Feedforward Neural Networks: Learning Weights using Backpropagation, Slides of Mechanical Engineering

Partial preview of the text

Download Multilayer Feedforward Neural Networks: Learning Weights using Backpropagation and more Slides Mechanical Engineering in PDF only on Docsity!

-^ We are looking at multilayer feedforward networks.

-^ We are looking at multilayer feedforward networks. •^ These are good for approximating any continuousfunction.

-^ We are looking at multilayer feedforward networks. •^ These are good for approximating any continuousfunction. •^ Given training examples, we can learn the weightsusing backpropagation algorithm. •^ The algorithm is simply iterative gradient descent onthe empirical risk under squared error loss.

-^ We are looking at multilayer feedforward networks. •^ These are good for approximating any continuousfunction. •^ Given training examples, we can learn the weightsusing backpropagation algorithm. •^ The algorithm is simply iterative gradient descent onthe empirical risk under squared error loss. •^ Backpropagation enables efficient calculation of thegradient.

-^ A two layer network can only learn ‘linear’ models. •^ But a 3-layer network can approximate anycontinuous function.

-^ A two layer network can only learn ‘linear’ models. •^ But a 3-layer network can approximate anycontinuous function. •^ This is the motivation for multilayer feedforward nets.

-^ Let us look at this using the example of XOR function.

-^ Let us look at this using the example of XOR function. •^ What is XOR function?

-^ Let us look at this using the example of XOR function. •^ What is XOR function?Given two binary inputs,

x, x, we want the output to^12

be one if and only if exactly one of them is one. • As you know, a linear classifier or a two layer networkcan not represent this.

-^ Let us look at this using the example of XOR function. •^ What is XOR function?Given two binary inputs,

x, x, we want the output to^12

be one if and only if exactly one of them is one. • As you know, a linear classifier or a two layer networkcan not represent this. • Let us see this.

-^ Take a 2-layer network as below. •^ We can not represent XOR with this.

-^ We can think of XOR as two parts.

-^ We can think of XOR as two parts. •^ One is to detect when at least one of the two inputs isone. •^ Other is to detect when both are one.

-^ We can think of XOR as two parts. •^ One is to detect when at least one of the two inputs isone. •^ Other is to detect when both are one. •^ Individually each one is easy.