P. 1
Entrenamiento de red perceptrón simple para compuerta AND de dos entradas

Entrenamiento de red perceptrón simple para compuerta AND de dos entradas

|Views: 5|Likes:

More info:

Published by: Luis Carlos Gonzales Rengifo on Aug 17, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

08/17/2013

pdf

text

original

Entrenamiento de red perceptrón simple para compuerta AND de

dos entradas
Sean los patrones siguientes, los cuales responden al comportamiento de una compuerta AND de
dos entradas:
x1 x2 s
0 0 0
0 1 0
1 0 0
1 1 1
Y la arquitectura de perceptrón simple siguiente:
Parámetros de la red:
Pesos iniciales: w1 = 0! w" = 0! w# = 0!
Definición de la salida: s = $%&' = 1 si & (= 0) 0 si & * 0
+l entrenamiento de la red neuronal se lle,a a ca-o como se muestra en los siguientes cálculos:
0 . 0 . 0
& = %0'%0!' / %0'%0!' / 0! = 0! $%&' = 1
e = 0 . 1 = 01
w1 = 0! / 01 1 0 = 0!
w" = 0! / 01 1 0 = 0!
w0 = 0! / %01' = 00!
0 . 0 . 0
& = 010! / 010! / %00!' = 00! $%&' = 0
0 . 1 . 0
& = 010! / 110! / %00!' = 0 $%&' = 1
e = 0 . 1 = 01
w1 = 0! / 0%01' 1 0 = 0!
w" = 0! / 0%01' 1 1 = 00!
w0 = 00! / %01' = 01!
0 . 0 . 0
& = 010! / 0100! / %01!' = 01! $%&' = 0
0 . 1 . 0
& = 010! / 1100! / %01!' = 0" $%&' = 0
1 . 0 . 0
& = 110! / 0100! / %01!' = 01 $%&' = 0
1 . 1 . 1
& = 110! / 1100! / %01!' = 01! $%&' = 0
e = 1 . 0 = 1
w1 = 0! / %1' 1 1 = 1!
w" = 00! / %1' 1 1 = 0!
w0 = 01! / %1' = 00!
0 . 0 . 0
& = 011! / 010! / %00!' = 00! $%&' = 0
0 . 1 . 0
& = 011! / 110! / %00!' = 0 $%&' = 1
e = 0 . 1 = 01
w1 = 1! / %01' 1 0 = 1!
w" = 0! / %01' 1 1 = 00!
w0 = 00! / %01' = 01!
0 . 0 . 0
& = 011! / 0100! / %01!' = 01! $%&' = 0
0 . 1 . 0
& = 011! / 1100! / %01!' = 0" $%&' = 0
1 . 0 . 0
& = 111! / 0100! / %01!' = 0 $%&' = 1
e = 0 . 1 = 01
w1 = 1! / %01' 1 1 = 0!
w" = 00! / %01' 1 0 = 00!
w0 = 01! / %01' = 0"!
0 . 0 . 0
& = 010! / 0100! / %0"!' = 0"! $%&' = 0
0 . 1 . 0
& = 010! / 1100! / %0"!' = 0# $%&' = 0
1 . 0 . 0
& = 110! / 0100! / %0"!' = 0" $%&' = 0
1 . 1 . 1
& = 110! / 1100! / %0"!' = 0"! $%&' = 0
e = 1 . 0 = 1
w1 = 0! / %1' 1 1 = 1!
w" = 00! / %1' 1 1 = 0!
w0 = 0"! / %01' = 01!
0 . 0 . 0
& = 011! / 010! / %01!' = 01! $%&' = 0
0 . 1 . 0
& = 011! / 110! / %01!' = 01 $%&' = 0
1 . 0 . 0
& = 111! / 010! / %01!' = 0 $%&' = 1
e = 0 . 1 = 01
w1 = 1! / %01' 1 1 = 0!
w" = 0! / %01' 1 0 = 0!
w0 = 01! / %01' = 0"!
0 . 0 . 0
& = 010! / 010! / %0"!' = 0"! $%&' = 0
0 . 1 . 0
& = 010! / 110! / %0"!' = 0" $%&' = 0
1 . 0 . 0
& = 110! / 010! / %0"!' = 0" $%&' = 0
1 . 1 . 1
& = 110! / 110! / %0"!' = 01! $%&' = 0
e = 1 . 0 = 1
w1 = 0! / %1' 1 1 = 1!
w" = 0! / %1' 1 1 = 1!
w0 = 0"! / %1' = 01!
0 . 0 . 0
& = 011! / 011! / %01!' = 01! $%&' = 0
0 . 1 . 0
& = 011! / 111! / %01!' = 0 $%&' = 1
e = 0 . 1 = 01
w1 = 1! / %01' 1 0 = 1!
w" = 1! / %01' 1 1 = 0!
w0 = 01! / %01' = 0"!
0 . 0 . 0
& = 011! / 010! / %0"!' = 0"! $%&' = 0
0 . 1 . 0
& = 011! / 110! / %0"!' = 0" $%&' = 0
1 . 0 . 0
& = 111! / 010! / %0"!' = 01 $%&' = 0
1 . 1 . 1
& = 111! / 110! / %0"!' = 00! $%&' = 0
e = 1 . 0 = 1
w1 = 1! / %1' 1 1 = "!
w" = 0! / %1' 1 1 = 1!
w0 = 0"! / %1' = 01!
0 . 0 . 0
& = 01"! / 011! / %01!' = 01! $%&' = 0
0 . 1 . 0
& = 01"! / 111! / %01!' = 0 $%&' = 1
e = 0 . 1 = 01
w1 = "! / %01' 1 0 = "!
w" = 1! / %01' 1 1 = 0!
w0 = 01! / %01' = 0"!
0 . 0 . 0
& = 01"! / 010! / %0"!' = 0"! $%&' = 0
0 . 1 . 0
& = 01"! / 110! / %0"!' = 0" $%&' = 0
1 . 0 . 0
& = 11"! / 010! / %0"!' = 0 $%&' = 1
e = 0 . 1 = 01
w1 = "! / %01' 1 1 = 1!
w" = 0! / %01' 1 0 = 0!
w0 = 0"! / %01' = 0#!
0 . 0 . 0
& = 011! / 010! / %0#!' = 0#! $%&' = 0
0 . 1 . 0
& = 011! / 110! / %0#!' = 0# $%&' = 0
1 . 0 . 0
& = 111! / 010! / %0#!' = 0" $%&' = 0
1 . 1 . 1
& = 111! / 110! / %0#!' = 01! $%&' = 0
e = 1 . 0 = 1
w1 = 1! / %1' 1 1 = "!
w" = 0! / %1' 1 1 = 1!
w0 = 0#! / %1' = 0"!
0 . 0 . 0
& = 01"! / 011! / %0"!' = 0"! $%&' = 0
0 . 1 . 0
& = 01"! / 111! / %0"!' = 01 $%&' = 0
1 . 0 . 0
& = 11"! / 011! / %0"!' = 0 $%&' = 1
e = 0 . 1 = 01
w1 = "! / %01' 1 1 = 1!
w" = 1! / %01' 1 0 = 1!
w0 = 0"! / %01' = 0#!
0 . 0 . 0
& = 011! / 011! / %0#!' = 0#! $%&' = 0
0 . 1 . 0
& = 011! / 111! / %0#!' = 0" $%&' = 0
1 . 0 . 0
& = 111! / 011! / %0#!' = 0" $%&' = 0
1 . 1 . 1
& = 111! / 111! / %0#!' = 00! $%&' = 0
e = 1 . 0 = 1
w1 = 1! / %1' 1 1 = "!
w" = 1! / %1' 1 1 = "!
w0 = 0#! / %1' = 0"!
0 . 0 . 0
& = 01"! / 01"! / %0"!' = 0"! $%&' = 0
0 . 1 . 0
& = 01"! / 11"! / %0"!' = 0 $%&' = 1
e = 0 . 1 = 01
w1 = "! / %01' 1 0 = "!
w" = "! / %01' 1 1 = 1!
w0 = 0"! / %01' = 0#!
0 . 0 . 0
& = 01"! / 011! / %0#!' = 0#! $%&' = 0
0 . 1 . 0
& = 01"! / 111! / %0#!' = 0" $%&' = 0
1 . 0 . 0
& = 11"! / 011! / %0#!' = 01 $%&' = 0
1 . 1 . 1
& = 11"! / 111! / %0#!' = 0! $%&' = 1
Pesos $inales de la red:
w1 = "!
w" = 1!
w0 = 0#!
http://blogdocente-investigativo.blogspot.mx/2012/05/entrenamiento-de-red-
perceptron-simple.html

5) = -1.5 w2 = -0.5 0–0–0 y = 0*0.5 + 0*-0.5 + (-1) * 0 = -0.5 + 1*-0.5 w0 = -1.5 + 1*-0.5 + 0*-0.5 + (-1) = -2.5 0–0–0 y = 0*1.5) = -0.5 + 0*-0.5 w0 = -2.5 + (1) * 1 = 1.5 + 0*0.5 + 0*-0.5 + (-1.5 + (1) * 1 = 0.5 + (1) * 1 = 0.5 + 0*-0.5) = -2.5) = 0 f(y) = 1 e = 0 – 1 = -1 w1 = 1.5 + 1*-0.5 + (-1.5 + (-1.5 0–0–0 y = 0*1.5 w2 = -0.5 + (-1) = -1.5) = -3 f(y) = 0 1–0–0 y = 1*0.5 w0 = -1.0–0–0 y = 0*0.5 + (-1.5 w2 = -0.5 f(y) = 0 0–1–0 y = 0*1.5 f(y) = 0 0–1–0 y = 0*0.5 + (-1) * 1 = 0.5 + 1*-0.5 + 0*0.5 + (-1.5 + (-2.5 f(y) = 0 0–1–0 y = 0*1.5 f(y) = 0 0–1–0 y = 0*1.5 + (1) = -0.5) = -2 f(y) = 0 1–1–1 y = 1*0.5) = -1 f(y) = 0 1–1–1 y = 1*0.5 + 0*-0.5) = 0 f(y) = 1 e = 0 – 1 = -1 w1 = 1.5 + (-2.5 + (-1.5 + (-2.5) = -1 f(y) = 0 1–0–0 .5 w2 = 0.5 + (-1.5 f(y) = 0 e=1–0=1 w1 = 0.5 + 1*-0.5) = -2.5 0–0–0 y = 0*1.5) = -1.5 + (-1.5 + 1*0.5 + (-0.5 + (-2.5 + (-1.5 + 1*0.5 w0 = -0.5 + (-0.5 + (1) * 1 = 1.5 f(y) = 0 e=1–0=1 w1 = 0.5) = -1.5) = -2 f(y) = 0 1–0–0 y = 1*1.5) = -1.5 + (-1) * 0 = 1.5 + (-1) = -1.5) = -2 f(y) = 0 1–0–0 y = 1*0.5 + (-1) * 1 = -0.5 f(y) = 0 0–1–0 y = 0*0.

You're Reading a Free Preview

Descarga
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->