• Nie Znaleziono Wyników

Neural network- laboratory

N/A
N/A
Protected

Academic year: 2021

Share "Neural network- laboratory"

Copied!
21
0
0

Pełen tekst

(1)

Neural network- laboratory

Agnieszka Nowak - Brzezińska

(2)

Neural network structure

(3)
(4)

1. Choose randomly one of the observation

2. Go through the appropriate procedures

to determine the input value

3. Compare the desired value with

the actually obtained in the

network

4. Adjust the weight by calculating the error

Learning process

(5)

How to calculate the prediction error ?

where:

•Errori is the error from the i-th node,

•Outputi is the value predicted by a network,

•Actuali is the real value (which the network should learn).

(6)

Change the weights

L- is so called learning network ratio. (usually values are from [0,1]). The less is the value of this coefficient the slower the learning process is.

Often this ratio is set to the highest value initially, and then is reduced by re-weighting network.

(7)

Example

(8)
(9)

Example

(10)
(11)

The network example

(12)

Wejście 1 Wejście 2

Bias Wejście 0

sumator

Funkcja aktywacji Wyjście

Waga 1 Waga 2

Waga 0

Sumator = wejście 0 * waga 0 + wejście 1 * waga 1 + wejście 2 * waga 2

(13)

0 0 1

sumator

Funkcja aktywacji 0,3 >0

0,5 -0,4

0,3

Sumator = 1*0,3 + 0 * 0,5 + 0 * -0,4 = 0,3

1

(14)

0 1 1

sumator

Funkcja aktywacji -0,2 <0

0,5 -0,4

0,2

Sumator = 1*0,2 + 0 * 0,5 +1 * -0,4 = -0,2

0

(15)

Create the sheet

(16)

The Algorithm

1. calculate the sum of the inputs with weights 2. The value put to the activation function

3. Calculate the output value

4. If output value differs from the pattern calculate the prediction error and change the weights

5. Repeat steps 1-4 as long as the output value differs from the patterns that it has to learn.

(17)

The STOP condition…

• Calculate the sum of errors in each iteration

• If the error >0 the network still should learn…

(18)

HOMEWORK

excel / Calc / Gnumeric

(19)

Create the sheet of learning neural network which has 2 input nodes and 1 output node:

1. AND 2. OR 3. NOR 4. NAND 5. XOR

(20)

Logical operation

(21)

Answer for questions:

• In how many iterations the network has already learnt?

• Is there some kind of logical function which the network could not learn?

• If yes, do you know WHY ?

Cytaty

Powiązane dokumenty

okazało się, że uczestnikiem Dni Literatury Radzieckiej będzie TW „Marian”, którego zamierzano wykorzystać do monitorowania przebiegu tej imprezy (AIPN Po, Pismo

EXE : An executable to predict the mean overtopping discharge at coastal structures given user-supplied input parameters that characterise the geometry of the structure

If we can measure temporary deforms of cutting tool and workpiece (elastic strains and heat deforma- tions) and know relationships between parameters of cutting process, we can to

• The output layer is responsible for aggregating the final beats of the hidden layers of neurons, and the presentation of the final result of the network

Its structure is very similar to this of the Radial Basis Func- tion neural network (RBF), however it utilizes entirely different learning algorithms, including not only

Without regularization images of the training vectors generated by the network collapse into three vertices of the triangle, while images of some perturbed vectors (5% Gaussian

In the Overlap and Neutral task conditions, chan- nelopathy facilitates attention shift, as it takes a longer mean time to shift attention for the control network than for the

When the legs are in a straight position (the length of the arm of the force bending the fin is maximum), the propulsion effect depends on the downward movement speed because the