subiecte moise upg
Transcript of subiecte moise upg
8/4/2019 subiecte moise upg
http://slidepdf.com/reader/full/subiecte-moise-upg 1/1
PERCEPTRON – algoritm si metoda de calcul pt valorile caracteristice antrenarii lui
w1 = 0 α = rata de antrenare α = 0 , 25
w2 = 0,4 w1,w2= ponderiT = 0.3 T= pragul
for
fiecare pereche din setul de antrenare ( i, t ) se evalueaza iesirea o daca la intrare se aplica iif iesirea o ≠ t se vor actualiza ponderile
• w = w + α ( t – o ) * i
• ∆w = α ( t – o ) * i
else• nimic
endif endfor
until o = t pentru toti vectorii de intrare din setul de antrenare
Relatii utile la calcul :
w = w + α ( t – o ) * i T = T+∆Τ net=i1w1+ i2w2
∆w = α ( t – o ) * i ∆Τ= α ( t – o ) * (-1) net < T => o = 0
net > T => o = 1
∆w1 = α ( t – o ) * i ; ∆w2 = α ( t – o ) * i
Setul de antrenare pentru AND este
( )) ( )) ( )) ( ))
1,
1
10,
0
10,
1
0,0,
0
0
w 1 w 2 T i1 i2 net o t a ( t – o ) Dw1 Dw2 DT
0 0,4 0,3 0 0 0 0 0 0 0 0 0
0 0,4 0,3 0 1 0,4 1 0 -0,25 0 -0,25 0,25
0 0,15 0,55 1 0 0 0 0 0 0 0 0
0 0,15 0,55 1 1 0,15 0 1 0,25 0,25 0,25 -0,25
0,25 0,4 0,3 0 0 0 0 0 0 0 0 0
0,25 0,4 0,3 0 1 0,4 1 0 -0,25 0 -0,25 0,250,25 0,15 0,55 1 0 0,25 0 0 0 0 0 0
0,25 0,15 0,55 1 1 0,4 0 1 0,25 0,25 0,25 -0,25