0% found this document useful (0 votes)
14 views

DL unit-4

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

DL unit-4

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

Unit-1v

Convolu oral neual netuoy hs ;


Neutal netok and Represostatfom kcasning

’ mulichannej Copwluon oferaton


Reuoont neual netosks:
’[ntocu chon to RNN
’ RNN Code

0eep Leaon ing oih


Pych py ach
Con voufoal ncIol
neual petursks.:.
’ Aon volutfoml peal nctuosk Ys o Subsc!
oe nechine Leaanig

neual netsos ks hch ae ugeol er cpRent


Rppla fons.
’ A CNN iS a kind op netusk Axhikctbre
Poo decp Leavning Azaithms rd is sReteie
SPeciefcolly Je9nion.

Tden fy fng and deos nig?ng


’ for he
age tte netuesk aschikceue
obzects, CNN

Tnslde con olutoal peuzal petuox ks:


The cNN S anohes tye ¢ eUal netuak
th Can un cover Key inRmation in bo th íne
Ser ies and imoge da te.
’It is hghy iluoble imge
Such os fmage vegofHon, objeck Classigfa ton
aund ttern vegn' hon.
’ CNN Can also cla6Sif audo and Sgpal dat
a CNN Archijectue anelogo s to
The Cnnechiiy
fabkon o! the human bain:
CNN YCs:
’A ceop leovnig CNN GNslsts oP Thee
layes:
Conslufoal layz:
’ the mnaority op ompuBaons
hapPen fo the
Convolu fonat ayer, ohfch fs he age
block oe a CN biflding
A
gecond onutoral 1aks an
Con volu tíma lat. ollesThe
9 The Pocess op onolufon
eIker nside this la% învoes a Kernet
oJingàcS Tho

a dot
Poo dhct
and he efley.
the iral outpt Pzom te
Pea tue
geaes op dots
map

4ulmaley,he
numeyfal fnage s Convesjed
values in Ths kYex fnt
Pooling laye:
LiKe Hze convolutioral 2Yer, The Poling kyey
alo SAee Ps a Keonei fiter acass ho
Dekomine Some inRonahon gelotes

>The pooliog ae edues he, umbey ag


foranneks ?n the fopt ofd alo vesulls în
Same fn fesmoon loss
> This layer 3edwes Com pleaity and imaes
The eppcenoy o the cNN
Fully ConnEcied y e ä s
> The Fully cooneced r is atexe image
Chssfcatfon hopens fo he CivN based onhe
Peatuse catacled ln the PoevjUS layts
ully CoDpeckd meons thot all tthenodes om,
One lay aze connackd to ey acoton
6 node se e neat aYeria
1t also Ciould incase Josees and aPPec
The outpat 8alit!, and it aed be omp odi'
-oal ez en sive.
Comvolulen pol?ng.

Fea tuse co bachon

Fi3 Batc CNN


Hoco Conblu Hoai lcyes casks:
kchieco

* set The
'eressany L'bazies
prsamet
N

APPy Acvalon lapr oftsaHon and pbt he


Plot The oulatjng,
ruly

dlogpipaG,
Advankesi c
Grod ot dee cfng t texns and Rtis
?n fmages, Sgnais
îmages, vides ano aucio SGras
’ Robs to tanshtion, ofaton.

accuac

o'sBpepsve
odanteges:to tain and ec'e a lot oP menr!
Reyuizes lag amous a labeleod cke
Repsesent fon lenon îrg:
Repye Sen tetien Laning sa pocess in
mochine. kea yning hexe Algfbros extaCt
tePorsen b on haf easfcy to undeseno and poasg,
’ hese RepyeSnka ton can be dosigned e
Soer Pelability,Tevca! blden Peatuges, or be
uSed Rer Toarsler leaspirg.
’ tey ase valucble
acYOSS
mochne Leorning tasKs ike ManY
roge undamenal
cossf fatn
e tofeve).
2RepeStn tebo feognirg Can be clivteol Dto:
Bupesied Reoesenktion leasnig:
leaning ePJeA ktfons on tsk Asfg
ano Jejed daa ad ged to Solve
* esk8.
UsuReovised epesnjaton Leaoning:
Leosniog TepgeSen afons 'oa fesk o on.
unsufavsec aay.
nOge ecently. self- SuRsVise!
s one op he moin doives behfndLeaoning
wnsufovsd
Peld Iike ComfRue
vís íon and NLP
nulhonel Copohuten oRa IBn;
’A muhanel

decog nion

Convou fon 6tactie olshmulfple Keznes ag


Vagag siges
nulcha Dpes Bck conol Hon petusk Sbcte
Tacorol. CNN Use ilas to caplue diep
Feo tudes f an inôkne, heY Htsfim-Conolto
oRYafon ina Sirg
Ofratfon chanpe.,
’ tno. muchael Stnctue Gach chorpel t/a
diffeont Corvolutnol Kornel Siaes en back fea tuses
dipfcoent Scalesof t

Covolutoa!
Conoluai Cono brtal
Chaong :Chopnel o.
chornet n
too Rvt: ote entcton and cloesiaia

Thee dila ed convolufn channels, F loAkn


layes a Conkc hye
Puhae The dflakd. Convolttfonchonrek ae te
Coge ae IM0CNN.

ovolufon conne|sto extyoct featues oft


diefosent Oles ane the rhoe dial led Convouta
Chanrets ae sndependentto eoch otheyo
2 hen, the Flatlen Icyesea tenct thegteg

aFíolly, in the class TPen fon Rrot Cakuhjes the


Pochab?lty distibu fon o och
Hhe Peate faoameky
layer.
Ceinon

Contat

lay-3
chonpel-a
chanrel-2
pi
ltheral
Hioral
TNO*uConvo
kt
ed >Dfla
ofb

signals
senst
Recxoen neural etk:.
Recu0er neral netioskC RNN)fsa TYPo o0
neuyal netwook.
where the c t Rro Hhe prevos 8}ep s
as npt to the CUent Step
na Recuent neal netusk a hicdep laYs
Y3 uged to Soe Complex. Pooblems
The roin and most Imo tant peatre o RYN
s t5 Hicken SeE, ebich Demembes me

Ghe Shtk aS0 7erd to as memony Skk


ske
since it
3emembens
his Poccsscs
the Pyeviay foRt to the nta.
Con hnue to
Jenegese ott

(XE
Eia: RecuTNn neual netuosk.
Axchiectuc op Rocu NGn neuyal petuwodk
RN hve the Some input ond otrt anhi
oher deep neumt ahflechoe
as ony
unlKe 0eep
DeeP neual netskS wbege ee hore
dipRosent eeight mataices e coch Dense pcterak

te Same.
alale Skle Hidden 6lele Ha
Th
ollaaitg Posnls;
hCux +Wh-4 +8)
Y
P, h, w, U,
AdvankgeS oe Recunsert neualV,6,c)
’An RNN emem bezs ech andnetuby evay pece oP
foesootfon thagh Hme
RNN arc een 09d wih
colutfonl lcyas
plsdvankges oR Recursert neual neturk.
Taining RNN rs vegy digrcul tosk.
brsadient
Apla fonc; vanfshing ano eex
JSfeech Recogni io
Plocling foblems.
mochire Transla orn
3) Faa. De.tecfon
TYRS o RNN
TYRS o RNN basd onte
umber of fnpts ad touts fo the retiok.
1. one
T)This nets Thoo iS ne InPut
and one otp
9. one to
manY:ii
3. many to ore:
Ea: SenHmenlel a nalysis
u. mamy to many:
Ea
LoguageTarslation
O7e toore netomay )
mantoore

()

mey to ray
iden)npu, lf.lstm hidden
bidder): - otRt,
nPut, Cseie Rotcuand def
-si3e,Chidden 0n-L inengr outPt-si3e)
lina=
tsie n02S -siae) hickenelf.
iddensi3e 3elf.jStm
9elf.hidden
-si
SelP). CANN, Supes
defînit-(sele,
sie, Pud în
dule: RNNCON.
Mo ClaSs
9 Aabikctie mocei tdefine,
he #
nn as Ntosch imbat
SequenCe: he.
in
value next Paedicts
he and 0pt asdata
Seaies Tim-e SooyLCrnCC
of Takesa Code hs
moaule.
LsI the oing toch Tmplemenled
Py in ’RNN
cook: RNN Toxdh Py
4 deoe te iOPut and atpt si3es
foetsse-1

# Coeale the model ond oPhnigeg


model RNN Cînpt-Siae, hiddern-sie

ophigeY = torch ophm. AdomCnocbi.


H
# Tain he modei
fer eph n ange Cnum- . efchs):

fey i, cinpu, tanES) in


eunerk
C.rain- tooder):
bdden.=ltachgesC, l,

l0Ss. backuand o
aph3ex Skpo
Dep Lasning oith Py Tasch:.
>NXch tkes tensoss and makes it sínple to
moNe hem. to GPus fo the. Rastc focessing
Decded chen tning eal netubsks.
a mode tos oLtomat;cally alcda te
Spadierts and anothes modde SReigcall Ss
building neLral pCtutsks. .ay9 ge01
> Pyoh onds P beirg ge pleaible with Pyton
yeh is on cfenSechine teani Ifbaoy
FOCbock'

wdeky uséd.in depleo3 potoal wuge


and Compukor visicn RPPlicoHes
Poocessig
Pgvdes a tyrenic ouatent becph
7 PyTch
chich albas Roy o9 od aiciernt-. Qoeli
oe Com plex. nesal netwcxks

leagning:
DeÇine the model:
fy Tesch foovicde ,a.
coce pange of foe- biltA
newsal ne kucoh achieckue Such as
Connected Fllgy
netwos, CNN, RN The rode an be
deined Lig Py ToChs tech .nn modle.
* Oepire Hhe loss Funcion:

mo del's Pes fosnance ano ate. ts Roanchs

Toxch Pocuides a oicde nge oP loss Pnchios


Such as COSS -entopy lc6s and an

Deline, the optiroier;.


heio Pimiger is Lsed to
Lfble fe nodel's
loss Punctfen.
Pytosch Beyicle wide ae Sucha
adam and SD. oPopioiess
* Toain te model:
he model f3 ocined ona
de fined los ttse Lrho
Puition and oPimige
’ osch
raides a onvenicnt data
and PDCeSSÍng Ibay. kocding
valae tthe madel:
APii
opánmiged
Rr-mobiboasle opinopilgeedng LessLeLesss
0L 7COcyqe Tedy PoodCHon LeS
Tengs thn maae ’
ankes: LesDilesssad
tainigisRr°csbialeci ise toESy ’
i 1bafes Htex TOEGafion
wioth
ndvision Compiter APlicaicns,
cs
Sch
cwid: fna depyecd bean1odel Taad The
model: te
Depy
fol2 Maz mfozE tasch
m
oi eoges Decessory 4mst
EAch modz1le
eneE-y:s the ORN
al_neüal conuetora Implemeniaog
uchleis
e model pooAgatcon
and Pagaetoxs back
bss) Our oPk Pdictios
ad ake
batches anc epchs auy over LooP
Aschijaceoe model! QUr DePine
sth ata image, na CNN TOaining
a ’
Psom. leasn
ecds péttsk
to Hehat abels anoYOpus
Po Tn CNN
fron toch-on imPrst Relu
Con toch-m Ynpest Logsoa
foom toxch Dn imest Plotten
4 defire lenet class
Chss LeNet Cmoduwe):
deeit- Self.nynconechss).:
SuRs CLene b, Se).

sel. PCa LinagCiCin o-eatusS0)


featae = o,
at-Rote=cb)
a 8elP.ConN4 (a)

gelp. 0a fol ta)

You might also like