back-propagation primer

14
A Primer on Back-Propagation of Errors (applied to neural networks) Auro Tripathy [email protected]

Upload: auro-tripathy

Post on 15-Apr-2017

512 views

Category:

Education


0 download

TRANSCRIPT

Page 2: Back-propagation Primer

AuroTripathy

Outline

• SummaryofForward-Propagation• TheCalculusofBack-propagation• Summary

2

Page 4: Back-propagation Primer

AuroTripathy

Feed-forwardtocalculatetheerrorrelativetothedesiredoutput

Error-Function(akaLoss-,Cost-,orObjective-Function)

• Inthefeed-forwardpath,calculatetheerrorrelativetothedesiredoutput• Wedefineaerror-functionE(X3,Y)asthe“penalty”ofpredictingX3whenthetrueoutputisY.• Theobjectiveistominimizetheerroracrossallthetrainingsamples.• Theerror/lossE(X3,Y)assignsanumericalscore(ascalar)forthenetwork’soutputX3given

theexpectedoutputY.• Thelossiszeroonlyforcaseswheretheneuralnetwork’soutputiscorrect.

4

Page 5: Back-propagation Primer

AuroTripathy

SigmoidActivationFunction

Thesigmoidactivationfunction

σ(x) = 1/(1 + e−x)

isanS-shapedactivationfunctiontransformingallvaluesofxintherange,[0,1]

5https://en.wikipedia.org/wiki/File:Logistic-curve.svg

Page 6: Back-propagation Primer

AuroTripathy

GradientDescent

6

Note,inpractice,wedon’texpectaglobalminima,asshownhere

ab

Page 9: Back-propagation Primer

AuroTripathy

DerivativeoftheSigmoidActivationFunction

9

P3 X3

FortheSigmoidfunction,thecoolthingis,thederivativeoftheoutput,X3(withrespecttotheinput,P3)isexpressedintermsoftheoutput,i.e.,

X3.(1-X3)

http://kawahara.ca/wp-content/uploads/derivative_of_sigmoid.jpg

Page 11: Back-propagation Primer

AuroTripathy

Propagatetheerrorsbackwardandadjusttheweights,w,sotheactualoutputmimicsthedesiredoutput

11

Page 12: Back-propagation Primer

AuroTripathy

ComputationsareLocalized&PartiallyPre-computedinthePreviousLayer

12

Page 13: Back-propagation Primer

AuroTripathy

Summary

☑Ifthere’sarepresentativesetofinputsandoutputs,thenback-propagationcanlearnthetheweights.

☑Back-propagationhaslinearperformancerelativetothenumberoflayers.

☑Simpletoimplement(andtest)

13

Page 14: Back-propagation Primer

AuroTripathy

Credits

14

ConceptscrystalizedfromMITProfessorPatrickWinston’slecture,https://www.youtube.com/watch?v=q0pm3BrIUFo

[email protected]