Docsity

Perceptron Learning Rule - Banking - Lecture Slides, Slides of Banking and Finance

Partial preview of the text

Download Perceptron Learning Rule - Banking - Lecture Slides and more Slides Banking and Finance in PDF only on Docsity!

Perceptron Learning Rule

Docsity.co

Learning Rules

p

1

t

1

{ , } p 2 t 2

{ , } … p Q t Q

{

,

}

,

,

,

Supervised Learning

of proper network behavior (inputs/targets)Network is provided with a set of examples

Reinforcement Learning

which indicates network performanceNetwork is only provided with a grade, or score,

Unsupervised Learning

the inputs.algorithm. Network learns to categorize (cluster)Only network inputs are available to the learning

Docsity.co

Single-Neuron Perceptron

p

1

a

n

Inputs

b

p

2

w

1,

w

1,

1

AAAA

AAAA

a

=

hardlim

(^) (

Wp

(^) +

(^) b

)

Two-Input Neuron

a

hardlim

w

T

1

p

b

hardlim w

1 1 ,

p

1

w

1 2 ,

p

2

b

w

1 1 ,

1

=

w

1 2 ,

1

=

b

1

=

p

1

p

2

1 w

T p

(^) +

(^) b

(^) =

(^) 0

a =

1

a =

0

1

1

1 w

Docsity.co

Decision Boundary

1 w

1 w

w

T

1

p

b

w

T

1

p

b

product with the weight vector.All points on the decision boundary have the same inner

weight vectorvector, and they must lie on a line orthogonal to theTherefore they have the same projection onto the weight

1 w

T p

(^) +

(^) b

(^) =

(^) 0

1 w

Docsity.co

OR Solution

1 w

OR

w

1

w

T

1

p

b

b

b

b

Weight vector should be orthogonal to the decision boundary.

Pick a point on the decision boundary to find the bias.

Docsity.co

Multiple-Neuron Perceptron

Each neuron will have its own decision boundary.

w

T

i

p

b

i

A single neuron can classify input vectors

into two categories.

A multi-neuron perceptron can classify

input vectors into 2

S

categories.

Docsity.co

Starting Point

1 w 1

3

2

w

1

Present

p

1

to the network:

a

hardlim

w

T

1

p

1

hardlim

a

hardlim

(

)

0

=

=

Random initial weight:

Incorrect Classification.

Docsity.co

4

Tentative Learning Rule

1 w

1

3

2

  • Set

w

to

p

  • Not stable
  • Add

p

to

w

If

t

1 and

a

0, then

w

1

new

w

1

old

p

w

new

w

1

old

p

1

Tentative Rule:

Docsity.co

4

Third Input Vector

1 w

1

3

2

Patterns are now correctly classified.

a

hardlim

w

T

1

p

3

hardlim

a

hardlim 0.

(

)

1

=

=

(Incorrect Classification)

w

new

w

1

old

p

3

If

t

a

, then

w

1

new

w

1

old

.^

Docsity.co

If Unified Learning Rule

t

1 and

a

0, then

w

1

new

w

1

old

p

If

t

0 and

a

1, then

w

1

new

w

1

old

p

If

t

a

, then

w

1

new

w

1

old

e

t

a

=

If

e

1, then

w

1

new

w

1

old

p

If

e

then

w

1

new

w

1

old

p

If

e

0, then

w

1

new

w

1

old

w

1

new

w

1

old

e

p

w

1

old

t

a

p

b

new

b

old

e

=

A bias is a

weight with

an input of 1.

Docsity.co

Apple/Banana Example

W

1

=

b

=

a

hardlim

Wp

1

b

hardlim

Training Set

Initial Weights First Iteration

p

1

t 1

p

2

t 2

a

hardlim

(

)

0

=

=

W

new

W

old

e

p

T

1

1

(

)

1

1

1

0

=

=

=

b

new

b

(^) old

e

1

(

)

=

=

=

e

t 1

a

Docsity.co

Second Iteration

a

hardlim

Wp

2

b

hardlim

a

hardlim

(

)

1

=

=

e

t 2

a

0

1

1

=

=

=

W

new

W

old

e

p

T

0

1

(

)

1 1

1

1

=

=

=

b

(^) new

b

(^) old

e

1

(

)

=

=

=

Docsity.co

Perceptron Rule Capability

The perceptron rule will always

converge to weights which accomplish

the desired classification, assuming that

such weights exist.

Docsity.co

Perceptron Limitations

w

T

1

p

b

Linear Decision Boundary

Linearly Inseparable Problems

Docsity.co