You are on page 1of 20

PAGE No.

1
DATE
7/8/23
Soft Computhg
.3
Q. O2
Caloulate net input
to neuron Y
6

Ans
-(o-3xo-2)+(o:s*o)+ 66-o-2)
= 0-06 t0.05 -o-(8
-yin-0.07

Q. Obtaln output y wehg acthatbn functon


06
O.3
Jbìnany sigmo td
o4
Gi) biolar sigmoid
Ane.yi = bias+,wwgt
(1xo-3s) +:&xo-)+(o-4xos)+(oux-o:a)
= 03540.08 + 0-8-D.08
-yin = 0.53
æ)Gneny sgmotd:
2 - 1
|+e-Yin

20 1 = 0 . 25.
1+¿0-53

ooou
(use binay data)
Q. Tmplement AND funethibn utng MP neuron
et wy =1

2
(Heshold ) = 2 Alto fownd fom fommla hwP,
share ho of inprts, we ereitodoy weight anol
pE inhifitoyoutputs
PAGE No. 2

DATE 7/8 23

Q. plement OR tunchbn wing MP neron.

XI+ IX: 2

-. se an see,for oR funehbn
threshold value y 0

0. Tmplenent ANbNoTfunetbn whg MP hewron.:,


Here. lete , =I andl: w=

: we cansee AND Not functbn, at l and u,-)


hreshold vae 0-1
PAOE to 3
DATE
7823

Q.Tmplement XoRwtgiMP newon.


Ame.

for XoR, we need neuon! ke:

uth tables t 2, and 2


Z2

(Ox1) +(ok-)=o

Tabhg

oo
2 22
PAGE No. 4
DATE
7/8/23

oUsong lhearseparability concept, oktain the naspnse


-for OR tnehn take bpolar inputs anal targeti) .

Asgume coordrates as
Go),(o)
-1 c=-1

matg ane thed1


|sepagole tre and
e reSponses

kre abo know g (b bias)


Wz
b= 1
W

b Gin = b+ ,tzWz

-| lelt ly=1+1x-)=)

-.
PAGE No.

DATE
I)823

fexcepton Model :

o.Tmplement ArD tneton iuslng peeptoni neiral nethork


(uslng bipolar inputs)
Ans: X y= (yn)

-1 -4 Cight ot bies)
Assume: W=0iy=0, bz090, =1
-4 -4 -1 leaming
avemeic
O30
bias t Yn AwAyAbw,
1 1
1

-4 -1 4 1:1 -1 2
- 1 -4 2 1 -1
-4 -43-1 1 -1

fr (4,4):

=.04 (xo)+(ixo) -

b(ne) b(old)+ t (nce bios alays ) b t 1,

fur (A,-):
Yin bt Siwi

b(nes) 44 (X-=o, b «t l
PAGE No. 2
DATE

for (,i:
= 0+ (Ko)+ (ix2) = 2,
w,(neu) o+(1N-lx-)y
b(ne) =o+ (|X-1) =-y Ab -V
or(-1,): y= f(ym)=
+(-x)+x)-3,
Afae) No shee y matehes with t, no change
neede.
N eMan same

Corhang ith Epochi2


X X2bias t 4b

-L|-1-1
-|o
-|

Shee y t , no change
fox (L-):
Sm=+(1KDt(tx)
Shce y=t, no
y+(yin
chonge

Snce yt, no change


for ( :
SMe y=t, ve change
Shce all e. iterstbn of epch had
had no dhange,
we can Jtop hene.
w,lw,=,bohad),
PAGE No 3
DATE
I)/8/23
-: By lear sepava bly,

Q. Tmplement XoR functton ustng perceptron heural network


Cuse binay hput). o (Ty at home, mo It pnbaly does
Ans. hot coe for eKaM cause too long)
We kno
So

So, finolae for Z and then tngy for Y


(neglect bias nÏ need to we)

Q. One monytyee ot queson


tnput Veets

learming congtont )=o


besmed Output
PAGE No.

DATE 11/8/2.3

Sc - Sott Computhg
netwoh .: The set ot inat
ure pereptrn learning to train the
trainia vectotS ane!

X,=
-2
|O
-0-5 0.5
-4

Inttial (weght vectr

Leaming constarrt iso.1 Dested outputr ae dy-4,d,:-2,d,:1


show weigkts obtamedaHer one complete yele.

NOTE: Perceçtrn eatning eguaton : w,


phere titarqet otput and o = obtaned output)

Ahs See outputs ahe her +1 or -1 e'l use bipolar,achvaton


functon.
Stee 4: net 4 = W

-2

Since d, 0, Wg W, + Aw = w,t a(d,-o)x

(o-)--) -2 -o-6

Lo-3
PAGE No.
2
DATE
17/8/23
Step 2: het, w.

-0S

she dO o change

Step 3: netg=w.Ag
oa3|-|

since d Og

+ (odtt+): -:4

O.
PAGE No 3
DATE 17823

fact\atbn
ZQ Vse Hebban learnvg th bihany and. continuouw
funeton
needs to be traMed ith

-2
-2

Mebbian heorng rector detemine


and initial welqht
aien tollouing ihput vector netwst. (ohe cyc)
tnal weights for Hebblan leaxning for shale neuron

X2oX3=21
|-2
actaton
Solve fr: ( ) Bipolar binary
O; = sgn(net) (Bgn ngo check]
(2) Bipolar cothuous actreton
2
1+net;
actvetn
Ans. C)Azt solng tor bipolar bhany
Step 1 : 3

*.O, = sgn (net)= 1


2

t
Step 2.
g= wt «.gn(het).

Step 3: t.
sgn (net) 3
PAGE No.

DATE
178/23
Step 4 het W y =:1

ep One yle done

(2) Solhg tor biplar contnyous actvaton z,


Step1 het, = . , 3
=||:40S
2.8io
tep 2 : nety = -2.8

-3-646
Step 3. het3 w . 3 - 1 - 278
7.218 -6.64

StepY. nety.y = 6-64


2
-669
lte

-7-687
PAGE No.

DATE
18/23

Delta learming fele - (Saperved


foRMAE :
Pertertn Model a

Delta
Whew Wald t t c- (d;-o).fhet). ;
wWald

funeton
Üse biplar. contuot aetattn tfuneton
anl deHa
avd leanha ne to
deta leann
soline
-2 |5
.5

one cyc]

het1
-2

.o' fnet) = 2

net)-o1
Wz W, c (o-o) f (net).x,
[i1+ o1 (-l-o. 848)- (o-(Mo) I=lo-979
-094
-2

0-526
PAGE No, 6
DATE
8823

Stee 2:2
het T
= o-474 -0-{48 o-sndo1 -|.422
|-oS
-o-S26
Ceenhhue ahead)
PAGE No
DATE 24/823

fexfnson ucng delta learming


2 toining steps ug nule.

-2
d,dyz+1

Ha Leamming
We knos be ta
Anwe ule formulae
e i h o t Cdi-o).net).x
’ f(net) = |-cos
2
l+net

net

o'= 2
o.462
W,z w, + o-25(-Iro-392x X

| J423
het 2
-o.430
2

Wg= wg + O.2s(lto.211). (o78). X2


Wg =o-859
0-24
0-44%
2
2 traiting stegs donel
8
248 /23
wINEe -TAKe -AlL LEAeNNG eULE Z
qiren below are 3 input etrs:

o.709
Input Pattern .
2-0.84|
o.447 o.894
Ans.

W
-0 9Y -0.447|

nt =
. net'=
-o.894 0.407 O.8444 wnnex
9.447
ong upcatihg .vs:
(?- wd
-o-y

t0223

o:223 o894
Step 2 '.
hetz
net2 -| -|
-o-447 0.223 0.223
-o-447 o-894J o-894 whner (highert

(Conthued)
PAGE No
DATE
24/823

o.894
-0.22 3S|
o.44
-0-447 -0-2237|
o2-23

MAD LINe
0.OS

b,=0.|5 Bilav btary


atiator
Ans- Zo,
- o-34 t(o-os)4 I(0-2) z0.3S

=O-15 t (o-1)+ (o,2)=D4S Z2ef2h2)=1

= o.st (os)+1(os) =|.5


":Y¢t updatmg erghts
= -o72s
Wne= Wold t « ( t ,

bioladt t 2 i ) = 0.3+os-oss)=-04

14 Teraton bone
PACE No.

DATE
28/8 2
Se

ERPTA : (Ewor bact -fropagaton Trahing Algorithm)


Biravy Cartnuou 2 Bipolar Conthuos
Hoet) fChet)- 2
14 e-?nef

Apoy EBP TA on the tollo wag: Use brpolax. actrahtn


2
D.0

Wz0-2 detred outut =I.o

Ant.foxward fasy
f(nctz)= o.50 (utha fnmale)
hdz 0-3+ (ox))+((n2) =23
.4het)= o-818 (uthg fomule - +es -1
nety -o-4 + (0-so ou)4o.818ko-2) --0-0364
fnety)=-0-ol 82
Now,
E E+ (d-y) (dz desire y obkhad)
=0+ (-Co.o182))

Backard ås (Caleuladg ehat S, and S,)


Shce were utha bipolar acetvaton,

Sy=d-y)(l-y
-[l-Go.ole2)(I-coon8)
eontnued)’
PAGE No 2
DATE
29/823

=-o5]°.(o-s094).o-4
0-025
82,
2o-818].(o:So81). o-2.

0.4 +(o-sog1).(o-s),
- 065
02+ (o-so&)(o-18
= 06l6

z0.1084
nea
2 +Q-02s )-0.
=2
= l + (o-02s):

o. 125,
PAGE No,

DATE
31 /8 /23

o.utigbackppagahon netr, And wew werght for he het


shoun in the tigure It t pesenteol th input pattern (o, 1)
the taqet.outpnt is d. Leaming constant is o-25 and
achraton funchom ia binany sigroi dal.
0-2

fot Unilar Conthuos,


f(net) ltehet

het - o-3+ (oxe-6)+(-o) -0-2,


4et
Ite-ko-2
netz =0-5 + (ox -0-3)+(i*ou)
SeaSo-Ss0,
lte
nety --02+(o-ssr0-4) +(o71 D-) 0. O9|
b-523
o+ (4-o.52s)

Paclewand Pass

Sy= (dy) (-yy = (-0.Sa3)-0.523)6.52)


PAGE No, 2
DATE 2 /8/23

vpdahg wvights

ne e O.416,.

o. + (o-2s)(o-114)(o.)

=-0-2+ (0-25)(o-19)
Wone=-0:170

eo-Ss-(-oss)- (o-t1).(o.u)
S. =o.o12,
- 071 (-0-7). (o19)(o.)

edathg werghtr
(But Xy=0)
0.o12

:-0.1 + (o:2s)(-z).|
-O:997y
Vo new Voi od t nS = 0.3+G2s).(o-ol2)
o-303/,
V new h'. 62,X, (But xX,=)
Vld t h.
V2dled t Sz,K2 9-4+ (o2s). (o.o02u). |
Vonne = 0.5+ (0-2s)· (o-o024)
Vo ne o-Soob,

You might also like