You are on page 1of 4
Neural Network Basics Due Apes 784M CET v Congratulations! You passed! Es Neural Network Basics 90% 1. ates neuron compute? => (© Anwuron computes ne mantle etre apphing the upto nathan uncon (© Anauon computes an station unctn towed by ear uncon (2= WA) (© Anwuron computes uncon that sats teing ine b) {© Ansuron computes near foncton¢= Wx +9) allowed by an actuation uneton Y comact Comet we general say tat the ouput of neurons = gb where te action uncton (Signo ant Re), 2 Wien eseishe opts? GE © £10) — mas. — 9) © 209) i089 © 6G" 9) = toeig") + 0 v)toaC— 9) © 2%) -19 9 | Y correct Come. ns sthe logins youve seen nacre 2 Supporsimgis (2323) array representing 2x32imagewsh 3esorchannee ret reenardboe. How you EES reshape this into a cols vector? © «- meresnapets2432°5.9) © meresnapa332432) © = imeresnapat.322"9) Oe mereshapets24323) Y Correct 4 Consider ne wo folowing random atays"9" and 0 a=» 18 = mp-randon-randn(2, 3) # a.shape = (2, 3) 2 b=mp.randon-randn(2, 1} # B.stape = (2, 2) 5 crate Whatwilbe me shape of? © Te computation cannothappen becuse theses donna. Ws goingtobe"Eror O cstape- 2) © csmape-2.3) O estan 2.1) Y correct ‘Yes! Tiss breadeastng (alum vectors copie 3 nes So hat can be summed to each column of 5 Conifer he wo foloning random arays'3" ands 28 = mp.ranton-randn(s, 3) # a.shape = (4, 3) 2° b= mpcranon-randnt3, 2} # B.stape = (3, 2) 3 ela \natiilbe te shape of? © Te computation annothppen becuse he ses dontmaten. hs gohngte bere © catape Y conect Inde! n umpy the "operator inscates leert-nse mulpstion. Is aferent rom np sot: yeu oud "c=npsdotiaty you would getc shape = 2). 5. Suppose you nave n,iput eatures per example Recalthat X= 201.) hac ithe mension oF O tmnt) © tram) O ima) Otm Y correct 1 Recah "mp.deaby performs a matric mutipatin on and whereas at performs an elemert.nse rruttpleaten Consider tne wo folowing random arays'3" and 0 andn(12268, 150) # 2 shape = (12268, 180) andn(150, 4S) # b. shape = (150, 45) nats te shapeoter © cstape = (1226, 150) © cohape= (12288 45) © shape =(150,150) (© Te computation annothappen decsserhe sees dont mat. Is gongte be"E1 SY Conect Corre, remember that ap dt, b)has shape rumber of rows ofa numberof ohms of). The ies maton because Conder the ellawing ode np: 4 a.shape = (3.4) 4 bishope = (4:0) for 4 Sn range(2)s for 4 in ranget@): 6 Medien’? SI + oc Now do youvectorze mis? 9. Cone ne felawing ode: 1 randon.randn(3, 3) 2 random. rand, 1) bela \natiibe (Fyre ro sire, fel rato nthe in python fre ut © ism vote broascosing, sb copied hee testo become(S.3} and san elamencise pros so cahapa ibe @.3) © sw oko broasasting, 5 copie three times to become, 3), and invokes a matic mipcston operation oftwe 3x3 mares socshapevillbeG 3) © Tis may 2x9 marca wth 3 De vector, ths esting 3 vector Tati cahape (30, © tewiieas to anerrrsince you cannot set operate on these wo matrices. You ned to instead we psoas) Y Correct 1. Conder ne iow computation graph veate Jeusvew \L hats te ut? Osretrw +9 Os-w-r0+9 O srarvrvrerate Ose stere Y conact Yes JsUty-weatD sate (D+d=34(+d-O +a (2-900.

You might also like