week 3 programming assignment/ reinforcement learning. it’s the final lab assignment. the course completion stands at 98% complete. in the final lab assignment there are 2 questions. the first question i have got it right. the second question i’m not getting any marks i have shared my answer for the second question in the attachment. i honestly don’t think that answer is worth 0% marks and that question is the reason that the course is stuck at 98%. let me know if anyone has had a similar issue or if someone could help out with the correct answer for the final lab test, final question, much appreciated.
hi! @rmwkwok, I did try that. on my screen it shows All Tests Passed on multiple attempts. However the grader still shows the old error Code Cell UNQ_C1: The value of your variable ‘q_network’ is correct. Code Cell UNQ_C1: The value of your variable ‘target_q_network’ is correct. Code Cell UNQ_C1: The value of your variable ‘optimizer’ is correct. Code Cell UNQ_C2 failed: compute_loss test 1 failed If you see many functions being marked as incorrect, try to trace back your steps & identify if there is an incorrect function that is being used in other steps. This dependency may be the cause of the errors.
There are “public tests” and “grader tests”, and the “All tests passed” message only indicates that your work has passed the public tests.
I have just submitted the assignment and the grader gave me 100%, so I think the grader is not a problem.
The error message you shared (UNQ_C2 failed: compute_loss test 1 failed) refers to a test that attempts to calculate the loss value based on some given inputs using your implementation of the “compute_loss” function. Failing that test means that your work didn’t compute the correct value.
For the reasons above, we should focus on your notebook and not the grader. I have 2 suggestions for you:
Check the hints underneath the exercise. This exercise should be relatively straightforward with the hints.
Back up your work, get a fresh copy of the notebook and make required changes ONLY to the areas between the marks ### START CODE HERE ### and ### END CODE HERE ###. Any changes outside of these areas or changes that are not required can fail the grader. After this, save the notebook, run it and make sure it’s error-free, and then submit it.