I’m getting “Grading Error” after submitting the assignment. While my all written codes are running and getting “All tests passed”
99% of the time when you pass the unit tests (and all your outputs match the expected outputs) but grading of the assignment fails, it is one of those reasons:
Important Note on Submission to the AutoGrader
Before submitting your assignment to the AutoGrader, please make sure you are not doing the following:
- You have not added any extra
- You have not added any extra code cell(s) in the assignment.
- You have not changed any of the function parameters.
- You are not using any global variables inside your graded exercises. Unless specifically instructed to do so, please refrain from it and use the local variables instead.
- You are not changing the assignment code where it is not required, like creating extra variables.
80% of these are:
- You are not using any global variables inside your graded exercises. Unless specifically instructed to do so, please refrain from it and use the local variables instead.
For example, if you have local variable named vocab_size
or classifier
then do not use global variable len(Vocab)
or model
.
Here is a Video what is being meant by global vs. local variables and the playground to experiment.
Also, make sure that all your cells execute without errors (if you experimented outside ### START CODE HERE ... ### END CODE HERE ###
Cheers
Why are there still errors in strictly following the requirements? If grading is for the purpose of grading, I don’t know the significance of offering courses
Hi @minglu
What do you mean? Your English is hard for me to understand.