You are on page 1of 3
€ Neural Network Basics VY Congratulations! You passed! = Neural Network Basics 80% 1. Whatdoes neuron compute? ) neuron computes te mesn af al eatures bere apling the output an actuation funeton © Aneuron computes tinea union = Wx oowed by an avaton union ‘Aneuran computes an action function fooned bya ner union f= We by ‘Aneuron computes a function g that sles theinput x nea We +b Y correct onrc we gneralysay tha te output neuron a= Wb nha ge the action ution (Samo anh Re.) 2. Which of seis tne Logsic Los"? £909) <1 — 418 a) = maz(0,y — 9) += Host — 9% © £469) = ow £6) =1¥8 4 | VY conrect omc ie i the lg ns youve sen in cure 3. Supposeimgis (2323) ray, representing a 32332 image wth 3 coor channels fe geen andblue. How do you reshape ths ita a column vector? imareshape 32323) smareshapet32°32) © vr imeesnapeta242283) ) so imgresnape2e323) Y comet 4 Consider heme ollowing random aay 3" and 4 nprandom rand, 3) shape =(, 30 apcandomrandod, 1)ebshape=(2, e234 Whotwibe sme shape of"? © cshope=2.3) © eshape =2.0) 80% O The computaton cant happen because he aes dnt mate Ws gingteBe“Eeor| Y comet ‘Yes Tiss broadcasting (column vector copie 3 tes 50 that canbe summed to each clu of 2 nprandom rand, 3] #ashape = (30+ nprandom andra 2) #bshape=(3, 2+ 2° What be he shape of"? O eshape 13.31 © cshope © The computaton cant happen because the izes dnt mate. gngto be EOF 2 XX Incorrect Nolin numpy the" operator inccates elements mulation es erent trom np. aou. you would 1ny"c= mda you wold getcahape = (4,2 Aa te broadcasting cannothappen because ofthe shape of, b should have been something ike, or (1,3) broadcast propery Sob adstoan eer Suppose youtauen, np features pr example, Rea that X= [ea] Whats the mension 3 (ma) O tm (mn) © wm Y conect 7. Recall mat"np.do¥a performs. maekemulipaton on 8 and whereas aM performs an elementnise Consider heme lowing random aay 3" and |= nprandom randt2268, 180) 4 shape = (1228, 1508 = Nprandomrandn50, 45) bahape =(80 45-2 npocaby © The computatencannet happen because the izes dnt mate. is gongtobe"Eor| © cshope 28,45) Y comet Corre, remember that ap da, b has shape number of rows ofa number of columns of. The ies maton becuse: numer of clans 3 =150 number are of? onside the allowing code snippet | ashape Ga b shape = (for in range or) nang =X +B 9. Consider the flowing cod a snprandomandn, 3b = np sander rand, t= ah hati bee youre no sure, Feel reo run thin python tof out © riswtinvokebroascasing, sb copied thee tines to become, 3 and nvokes a mater mlpeaion perton of two 3c matrices 0 cahape wile 2,3) © msm broadcasting, obs copa tee mes to became (3.3, and san element se product so ahape al be, 3) © mmiteadte an eee sine you cannot use" oapeate on these wo matices You needto stead use data) © ‘swim a3 matica with aut vectra esulng ina et veto Thal, shape = (3: X tncorree 10, Consider he lowing computation graph Jeuevew \l/ c vat @i-a-mera O eee O fte-MF tera) O Feat ties ate Y correct Yes J-ury-weatbeate-deg-a*+d-Wra-—-nbea

You might also like