I have passed all previous 4 tests but I got “6 Tests failed” error in Exercise 5. Can you tell me how to resolve the issue
You could start by looking at the unit test code. Use File-open to find the w2_unittest.py
file, then look for the def unittest_test_model(target, pretrained_model):
code block
Each of those test cases is executed in sequence, and the results compared with the expected value contained in the dictionary entry. You can drill down to the individual test level in the next section of that function to see how each test case is invoked.
To debug, you could try instrumenting that code, or copying to a special cell in your notebook that implements it and see what is going wrong. Just be sure to work in copies that you won’t submit to the grader. Hope this helps.
Thanks.
I have passed all the Exercise but score is 0.
Can you tell me how to resolve this.
If your code passes the notebook unit tests, but fails the grader (assuming the grader is accessible and you work has been saved and submitted etc) the problem is often use of global variables instead of local parameters within one of the graded functions. Always helpful to post the grader feedback, even if it seems obtuse.