I finished the programming assignment of the 3rd week of the calculus course and all the unit tests passed other than a single one. Moreover, I got 0 grades after submitting the assignment. The unit test which is failing gives me this error.
Test case "change_weights_check". Wrong output of Z1 for X =
[[ 5.46584646 6.71120407 7.21301753 ... 1.77559174 3.52245562
7.86492998]
[ 2.91868287 10.31812597 7.79616824 ... 2.43434264 3.64044705
6.77517917]]
Test for i = 1, j = 1999.
Expected:
-0.03577862954823146
Got:
-0.03577862954823145
47 Tests passed
1 Tests failed
As you can see the only difference is in the last digit of the decimal. Instead of 6 I get 5 and I don’t know why. Furthermore, I can’t figure out why I am getting 0 grades. Can anyone help me with these two problems please?
** UPDATE 1: I may have found a solution to the issue with 0 grades. Awaiting new grading now.
** UPDATE 2: Problem with zero grades solved. I passed with 100. I’m guessing the unit test is wrong then?