0 ratings0% found this document useful (0 votes) 57 views10 pagesDeep Learning Assignment
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
Nowe ~ Shobhan Kan
ce No.— 2oaroouy | | Assi man
Deph- ARDS Se
Semester - 6th
Rall aa. a2, | pat-26 [04] 2024
SdycD= BEEP LEARN CAD O\)|
Gusslions —
\VComparison behween dour af the adivalion fundions
CSigmeid, Tank , Rela, Sotimax) «
2F Run code for Stochailic and Mr:
BY LA Norm & LO Nocm Regutanraion
AY LL Nom Ciara), Wy » Horo , Suppertiog
-bAldn (radio baw.
PQALS Cxpleradion -
cn Saions , solidions) «
a . | -aa-an
A Ansuser — Sigmoid fomBion | Tanh, Clyperoctic. Tengen) fardion
Range: Co,v) CAD
x.
\ 4
: ae tanhCe) 2
Formula: 6 (x)2 oe nner) 2 Soe
Chanaleridic + Smooth Cae 2 oneer te the Sigrsld Ganction
- oddgal is slang an, ne aoe aro.
oat Op Is Always beth Vand).
* Unefill in binary cainifien + in hastiidion desley.
| -ahion eee eo Addrun KR variasleana, gto
jr Susceptible 4 vanishing probe bafur han te
| apredion problems eo a
parBurlarly ia deep Stgmeid {rmehion
neal rukworks , |Pberivadives
-forma
Rech fied Unear i -
t CRELL)
‘ange : | To, +eo]
romulla | fo) > man (0,
1 Hidend,
a]
es Fash
I ein ng
ts
anishing
| Bradinwhs Groban 5
dvelding ih fe potie.
das
Dy
+ Mowevur, Ve can cage
| the Nagin RELL" problum |
where newnrong a bhuck,
in dhe megeue side
ry
amd ceare to vpdadd ,
" i 5 oOibrzdo 7
Relullx) = 5 j i so
+ Since RELL is nok difteu,
= nBable ol %20, a Common
Preakoe is define th
| a oe oo Gr 28
| amd \ &e xZO. I
Derivadive | +
Lunetions
| 6 (2) = 6x). Cl-6lx))
3 probabilities ts 1, mbes
lempating aendiont during beckpropagalion |
| Mana
| oulpul’ ackivakion funchion.
tanh) | ve (
*enihey
mle ond complionaly | Used ty ath Q
* Ensures Hat Md suum ou
|
r mal Ceclusw,
he fr may i
* Sonia dp otdlions dus 4)
expo: cull funehion .
|
“The derivative ag Gace softmax fumes
fan be qui complr clue do its
clependency on other olpul?. Tt
tan be calentatel ag follows :
| Sogtmax' Ci) 2 Softmax Ce; )+ Cl Gott
This dade formule a pplie chun
materi Tut” wn Settinax af thephrase — ape neompa o rp Shochiic hradion’ Descont CStb):
al
y wimpy Ss np 4
a Stochanhe— qredionl cascanl CX,y earring vel 20-01, epechs 200,
balch cial):
N-Sampls , no Ge alures 2X. shape
weight arp terow Cn. Calures a“)
KX anp - Concddensla CCng.ones (Cn -samaglir 1) 3 X] eset)
ee range Cepechs)
for 1 Tenge Cn-samels):.
rand dx 2 np. random crandia® Cn sanplr) §
XA SX Crand Ad, tL veshage C1,-9
got ay Crand idx)
oF
predichion anp.dok Cx ,wdght?
ever 290 ce
weigh +2 Leaning wall Hever # Xi Lafbn()
reoherm woight
© Mini- Balch Gradient Desa :
‘wap orl Wumnapy 88 9p
deg pink outeh_ predic daha Cy Learingpral2=0-01 epochs,
balth size2 32):
ne samples, n—fealucres 2%. Shape
weagnd np. 2e10u Cn fealuores +\)
jie np. concaSrat? Clnpones (On samples 1), x] aise 1)
in re Cepochs): . :
for Ee range CO, n-samples, Lasix:
Xbateh 2 XTidx vid& 4 babdy stead
proach 2 4 Tide Hide + bakeh_siae]predidion np. pa Ge wih nah
evr = bleh . rearchion :
ae ene dol CX teh Tere)
weigh? 42 Leaning ¥ valle * greater)
veharn weight
foe bottr af the codes, X' is. om Galan i ‘4! :
te oe vector, * Lesorcng « cred is an Rip RIM the
rule, ‘epodw) As Ge numba ob pues dhrough tha La)
“pol size? dy SQ. number a sampls ured Va @ach, Verd
BY uer LI Norm pin Cn Ragrerin) > |
a) beBiadHion = Li norm Hegalart lien also’ Kroon ae Lame Cry
Ainsolde Shrinkage and SeLedion See radio, 4
a gral teem tm I cok fur Dion i
abet) Valine af he model wadghhh .
Te aims bo encoural
agernly un dhe
mold by forcing some 4 dhe wen oy
be ena ty deo.
©) GX Gothioas With Li Reatard Dien:
ay CO) = OFigingh Cok fuattion + RSS
jai Og \
aoe
SO)? hegudarized cov Gordon
1 Bam de wWodd wad t 4 ‘
“Ais Be repelasiackin Soraratl Gite Ki “
vepladias ton 9) ae ff derm) 4
+ tejl Tere) the absol.Q
a |Vy etteel on Modes :
A wegesacd ation tends do gl sparse modells, vhearing i douly
do Be mang af Gu waded - enaaly #1:
-a sect LeDiurer oy thre x2: coeygeers a4 Lun “pe Nant
foal 8 : As
wes dy aero, evel perforring Gebers mae S
Th hutys grorial owrbig bg Teese
wmode
v OPincaabion
“LA regulars odin bani" Bet SPincsed “worry varios oe
algorithms an gradion® escent ,
swe agente eG :
Lo Norm Qegularicalion CSuoedd Session)!
Udariaadion yalso Known on subset Seledlion,
Bieidly adds a penalty Bann SD week femiion Hared on the
—e non Bere woighih .. Tr aims WO ead a subse af feAloes
bog memati SQL murmur ah Renn Bere coeftiaends.
WY CR Peadion with Lo Regudarivction ;
C0) = Origine. Co Pundion +AS 5. TCH #0)-
Oo,
LCe) 1s SO regained 10" froradion «
+O ane dhe modeh wo.
tA is he requanecion (poral «
TCO) #0) 1s an indicator furdlion aad dure if ej nok
eapal to 210 and 0 othucwise -
ay dePirstion LLO nrerm nag* marad ng
se equ an sparsity *8 : b a
Lo regia”
at on oe hr itn hy dicey genting deg
oLk ge a e va dheeamaded
v J di fair
Oude ao be torileionst pagent Sn PATA
“ Seed bE non orver nadine
2) olin - .
= biel oploniaaion abe regulastion, uo 4 Anbrcll
dur dp is Combiralosal, ralioe Approximate wthods sah
forward SetDMion ,rackward aliminnion or Vextalive droll
Lae ned -
y Summary,
lbokile LI earn (Lasse) Ned BPeersh
Penads sing. ONS ce af na, ie a) yy
bine Peine IO nimi '
AON VO Webs) a
\E more aggrnive on he oe mn B38, wating
more, Commonly wed rede i i Yeadarivad: "2
amd. compcbahi ove *Yfieney Conagered be beL2 Norm Reguiar' action C Ridge Regrenian) :
WR is LL Norm Regular adion ¢
LL norm vegubaralion yaloe lenown as Ridge regutireadion addy
x term do dhe cov furadion properviensh do dh :
Saponed mengrabacie ah ee rode vecaginks . Er ans do pre
oventitting bg penaing lange weaghh ao gromabig smoothur
modebs.
Why use L2 Nocm Regubariaalion®
2+ Prewenbig Overfitfing~ aE regular aio helps, preverd ouenfiting
by discomaging overly comple” models with large weighh «
© Mandl: Mibticollinear?: > Dp on handle mudlhcollinenty 7)
JPL lal by shrinking Opa coefficient? af corclaled features -
oe . .o. G .
Lorprovieg Croneralinetin : 4y Aiding Yu complex af Bed mately
AL negalanization smgnovto Us gerenbisalion performani on
umseen tel.
He How Deo L2 Norm Reguberisahon Work %
a) Gosh fundlion with £2 Pegubar zclion :
Slo) = Origurad (of fundlion + AES O5
Whoe,
2 TCe) is Hal negubaciaed DX Gunchion’:
6B a moded wert.
<\ oe A
oA fhe regularisation poramelen
ecm). a
“ :
°65 ceprpsinls She sqpanad magunde af en y weight.
Cregutarizabon shrungth) ce»&
7 Pech on Modded :
Me NepudniaDin, perained peraioes Ati
Smooth model, with swale ep iend -
° Th hs reoth, ia bah serene rennet. mt
, ar ‘ :
“Lf pee hoe OF ono ane
HE Sup porting Derivadions :
To derive She gredienl of wogulatieed wot Goidlon
et fh. ww i
Herpeet do the wer gad Ce), we dhe derivedive % de
requlariaed cor Gerdlion and serif be tere. |
OT)
26
Duriustion .
O50) a, ., oe
2 76 orignal corr foradion + AQ ie 8 )
2
22 Cong
2 Congaah Lest furalion) +28
4 Soludions —
2) Clored —Porm SalSlion CNormas Bardon ): Ridge Ragpremion cam be
dnad ically vay de closed - form solDion, aloo Known as the norni!
by txradiend besten] + Th ean afro be glinined Trereivdly wo 8
degumO of 1K varien? Ulie Stodmaie gradient” degen
min = batt gqeadiunl descent”,
©) Solver Libraries : Various Deap- Learning Ubrariva Leg: gulls
Tensor Plow, PTE) provide: built-in fimdbiont ty fin UAE
negrnion models efpreally :
gzAssignment 2.
way Y ‘
WHE a Shor| nol on : Robtemann Machines , Deep Bett
Nekworks CDINS) and henumive Ad versanial Networks Cte),
Ang- Boltawenn Mackine + Boltemann Madhiary oe % a
af probatsishe genoative, model « They conti of
binary wunls Crrunota) con wn a rebwork with
Syrmel'ri c Connections . ere modes ane bedacd
dt lam dhe undediag probabil tt, ishilodion
Aneel Oo a dhe conntadion
“4 the inpud data bg od ing
weigh? based on observed F ors
+ Deo Buel Naluoorles (bBNs) ; beep Beti Nadworks
. Ls
ane composed af mabtip- ayers ok slodrastic dent
vosiablis Cusuabtyy Binary) Tea ane ay pically bal?
Resicted Boltzmann Machines CRBS) and
Um
* iO) y Goilovecd
troined 10% layer wise
by ine tesing with backp ropageion . PEN are
power heh fer wnsucper iced feabore Leaning and
often wid for dasks such O36 dimension! by
veedadkiom and olomi fesdlion-i
CAN sy)?
° Creneralive Adversanial Nekwoo CC . 8
CANS contigtm af dwo neural nibworl, or
amd a diserinendlor, breined simubtarsovr'y 5
The generstor gerencdlad gampl- oo
From wandom noige , WL dr— dscrinimedor
Foe eas deen se
wD. ‘., fe of
i see noodachc eyadhdic
dat and Wwe appicctions in longa ak
gerumion, Slyte banger saad daG aug ion,
y