For backpropation, 14 of my tests pass, two fail. Moving onto exercise 5, 9 of my tests pass and 7 fail. I tried looking for stuff like round-off errors. I am not sure what else to look at? I don’t believe I can post the code. Any help would be appreciated. It would be nice to finish before the deadline
My lab id is kucnqbaw
Wrong output values for gradient of W2 matrix.
Expected: [[ 0.07703226 0.0830197 0.06531928 0.05403581 0.01527358 0.04429936
0.03275124 0.02135265 0.05621979 0.02962936 0.08694257 0.08630969
0.02439637 0.01052179 0.01830904]
Got: [[0.07703225 0.0830197 0.06531928 0.05403581 0.01527359 0.04429936
0.03275124 0.02135265 0.05621979 0.02962936 0.08694257 0.08630969
0.02439637 0.01052179 0.01830904]
Wrong output values for gradient of W2 matrix.
Expected: [[ 0.07703226 0.0830197 0.06531928 0.05403581 0.01527358 0.04429936
0.03275124 0.02135265 0.05621979 0.02962936 0.08694257 0.08630969
0.02439637 0.01052179 0.01830904]
[-0.75214825 -0.81061012 -0.63778195 -0.52760933 -0.14913234 -0.43254201
-0.3197854 -0.20848876 -0.54893391 -0.28930307 -0.84891327 -0.84273381
-0.2382078 -0.10273549 -0.17877074]
[ 0.03296985 0.03553248 0.02795669 0.02312735 0.0065371 0.01896015
0.01401755 0.00913895 0.0240621 0.01268138 0.03721147 0.03694059
0.01044166 0.00450333 0.00783628]
[ 0.08996299 0.0969555 0.07628386 0.06310633 0.01783743 0.05173551
0.03824891 0.02493694 0.06565692 0.03460298 0.10153687 0.10079776
0.02849157 0.01228799 0.02138242]
[ 0.04894702 0.0527515 0.04150449 0.03433486 0.00970498 0.02814823
0.02081045 0.01356768 0.03572259 0.01882677 0.05524413 0.054842
0.01550168 0.00668564 0.01163374]
[ 0.12178334 0.13124914 0.10326583 0.08542734 0.02414662 0.07003461
0.05177774 0.03375725 0.08888009 0.04684222 0.13745095 0.13645041
0.03856918 0.01663431 0.02894549]
[ 0.10343212 0.11147154 0.08770497 0.07255452 0.02050802 0.05948128
0.04397548 0.02867046 0.07548698 0.03978369 0.11673882 0.11588905
0.03275729 0.01412773 0.02458377]
[ 0.12143411 0.13087276 0.1029697 0.08518237 0.02407737 0.06983378
0.05162926 0.03366045 0.08862521 0.04670789 0.13705679 0.13605912
0.03845858 0.01658661 0.02886248]
[ 0.08175855 0.08811336 0.06932693 0.05735116 0.01621069 0.04701734
0.03476069 0.02266274 0.05966914 0.03144726 0.09227692 0.09160521
0.0258932 0.01116735 0.01943239]
[ 0.07482801 0.08064413 0.06345019 0.05248959 0.01483654 0.04303175
0.03181408 0.02074165 0.05461108 0.02878152 0.08445474 0.08383998
0.02369827 0.01022071 0.01778514]]
Got: [[0.07703225 0.0830197 0.06531928 0.05403581 0.01527359 0.04429936
0.03275124 0.02135265 0.05621979 0.02962936 0.08694257 0.08630969
0.02439637 0.01052179 0.01830904]
[0.05971045 0.06435153 0.0506313 0.04188508 0.0118391 0.03433801
0.02538666 0.0165512 0.04357796 0.02296677 0.06739228 0.06690172
0.01891049 0.00815581 0.01419199]
[0.03296985 0.03553248 0.02795669 0.02312736 0.0065371 0.01896015
0.01401755 0.00913895 0.0240621 0.01268138 0.03721147 0.0369406
0.01044166 0.00450333 0.00783628]
[0.089963 0.09695551 0.07628386 0.06310633 0.01783743 0.05173551
0.03824891 0.02493694 0.06565692 0.03460298 0.10153687 0.10079776
0.02849157 0.01228799 0.02138242]
[0.04894703 0.05275151 0.04150449 0.03433486 0.00970498 0.02814823
0.02081045 0.01356768 0.03572259 0.01882677 0.05524413 0.054842
0.01550168 0.00668565 0.01163374]
[0.12178334 0.13124914 0.10326584 0.08542734 0.02414662 0.07003461
0.05177774 0.03375725 0.08888009 0.04684222 0.13745095 0.13645041
0.03856918 0.01663431 0.02894549]
[0.10343212 0.11147154 0.08770497 0.07255452 0.02050802 0.05948128
0.04397548 0.02867046 0.07548698 0.03978369 0.11673882 0.11588905
0.03275729 0.01412773 0.02458377]
[0.12143411 0.13087275 0.1029697 0.08518237 0.02407737 0.06983378
0.05162925 0.03366045 0.08862521 0.04670789 0.13705679 0.13605911
0.03845858 0.01658661 0.02886248]
[0.08175856 0.08811336 0.06932693 0.05735116 0.01621069 0.04701734
0.03476069 0.02266274 0.05966914 0.03144726 0.09227692 0.09160521
0.0258932 0.01116735 0.01943239]
[0.07482801 0.08064413 0.0634502 0.05248959 0.01483654 0.04303175
0.03181408 0.02074165 0.05461108 0.02878152 0.08445475 0.08383998
0.02369827 0.01022071 0.01778514]].
Wrong output values for gradient of W2 matrix.
Expected: [[ 0.44599491 0.36281358 0.02442993 0.08623383 0.2048208 0.31823863
0.15032611 0.16297297 0.41717169 0.43173126]
[-1.16350265 -0.94650084 -0.06373232 -0.2249651 -0.53433242 -0.83021462
-0.39216777 -0.42516065 -1.0883092 -1.12629192]
[ 0.2417282 0.19664411 0.01324097 0.04673853 0.11101239 0.1724846
0.0814764 0.08833097 0.22610608 0.23399734]
[ 0.12866761 0.10467015 0.00704793 0.02487809 0.05908992 0.09181047
0.04336843 0.047017 0.12035223 0.12455261]
[ 0.34711193 0.282373 0.01901349 0.06711465 0.15940931 0.24768091
0.11699682 0.12683971 0.3246792 0.33601072]]
Got: [[0.44599492 0.36281358 0.02442993 0.08623383 0.2048208 0.31823864
0.15032611 0.16297298 0.41717169 0.43173127]
[0.80677095 0.65630222 0.04419189 0.15599045 0.37050528 0.57566954
0.27192853 0.29480574 0.75463193 0.78096909]
[0.2417282 0.19664411 0.01324096 0.04673853 0.11101239 0.1724846
0.0814764 0.08833097 0.22610608 0.23399733]
[0.12866761 0.10467016 0.00704793 0.02487809 0.05908992 0.09181048
0.04336844 0.047017 0.12035224 0.12455261]
[0.34711193 0.282373 0.01901349 0.06711464 0.15940931 0.24768091
0.11699682 0.12683971 0.3246792 0.33601072]].
14 Tests passed
2 Tests failed