BP神经网络模型推导

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

Theprojectdescribesteachingprocessofmulti-layerneuralnetworkemployingbackpropagationalgorithm.Toillustratethisprocessthethreelayerneuralnetworkwithtwoinputsandoneoutput,whichisshowninthepicturebelow,isused:Eachneuroniscomposedoftwounits.Firstunitaddsproductsofweightscoefficientsandinputsignals.Thesecondunitrealisenonlinearfunction,calledneuronactivationfunction.Signaleisadderoutputsignal,andy=f(e)isoutputsignalofnonlinearelement.Signalyisalsooutputsignalofneuron.Toteachtheneuralnetworkweneedtrainingdataset.Thetrainingdatasetconsistsofinputsignals(x1andx2)assignedwithcorrespondingtarget(desiredoutput)z.Thenetworktrainingisaniterativeprocess.Ineachiterationweightscoefficientsofnodesaremodifiedusingnewdatafromtrainingdataset.Modificationiscalculatedusingalgorithmdescribedbelow:Eachteachingstepstartswithforcingbothinputsignalsfromtrainingset.Afterthisstagewecandetermineoutputsignalsvaluesforeachneuronineachnetworklayer.Picturesbelowillustratehowsignalispropagatingthroughthenetwork,Symbolsw(xm)nrepresentweightsofconnectionsbetweennetworkinputxmandneuronnininputlayer.Symbolsynrepresentsoutputsignalofneuronn.Propagationofsignalsthroughthehiddenlayer.Symbolswmnrepresentweightsofconnectionsbetweenoutputofneuronmandinputofneuronninthenextlayer.Propagationofsignalsthroughtheoutputlayer.Inthenextalgorithmsteptheoutputsignalofthenetworkyiscomparedwiththedesiredoutputvalue(thetarget),whichisfoundintrainingdataset.Thedifferenceiscallederrorsignalofoutputlayerneuron.Itisimpossibletocomputeerrorsignalforinternalneuronsdirectly,becauseoutputvaluesoftheseneuronsareunknown.Formanyyearstheeffectivemethodfortrainingmultiplayernetworkshasbeenunknown.Onlyinthemiddleeightiesthebackpropagationalgorithmhasbeenworkedout.Theideaistopropagateerrorsignal(computedinsingleteachingstep)backtoallneurons,whichoutputsignalswereinputfordiscussedneuron.Theweights'coefficientswmnusedtopropagateerrorsbackareequaltothisusedduringcomputingoutputvalue.Onlythedirectionofdataflowischanged(signalsarepropagatedfromoutputtoinputsoneaftertheother).Thistechniqueisusedforallnetworklayers.Ifpropagatederrorscamefromfewneuronstheyareadded.Theillustrationisbelow:Whentheerrorsignalforeachneuroniscomputed,theweightscoefficientsofeachneuroninputnodemaybemodified.Informulasbelowdf(e)/derepresentsderivativeofneuronactivationfunction(whichweightsaremodified).df1(e)/dw(x1)1=[df1(e)/de]*[de/dw(x1)1]=[df(e)/de]*x1Coefficientaffectsnetworkteachingspeed.Thereareafewtechniquestoselectthisparameter.Thefirstmethodistostartteachingprocesswithlargevalueoftheparameter.Whileweightscoefficientsarebeingestablishedtheparameterisbeingdecreasedgradually.Thesecond,morecomplicated,methodstartsteachingwithsmallparametervalue.Duringtheteachingprocesstheparameterisbeingincreasedwhentheteachingisadvancedandthendecreasedagaininthefinalstage.Startingteachingprocesswithlowparametervalueenablestodetermineweightscoefficientssigns.ReferencesRyszardTadeusiewczSiecineuronowe,Kraków1992

1 / 10
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功