Hi All,
I am getting “There was a problem grading your submission. Check stderr for more details.” despite I am getting the correct expected output and All test passed in the assignment as well.
I have done the following recommended checks already:
no added / deleted code apart from where needed
no global variables referenced
Also I have restarted the notebook - but the problems keeps recurring.
Anyone can help me get my code graded?
Best Regards,
Blazej
link to item
Just passing one set of tests does not prove that your code is fully correct. The grader may use different test cases which catch additional errors that the tests in the notebook did not. The type of errors to look for are things that make your code not general, e.g. hard-coding assumptions about the dimensions of the input or referencing global variables from the body of your functions.
Also note that the mentors are just fellow student volunteers and cannot directly see your code or your grader status.
Did you try clicking “Show grader output” to see if there is any more information available? It’s frequently not helpful, but it’s at least worth a try.
Another easy experiment that’s worth a try is:
Kernel -> Restart and Clear Output
Save
Submit to grader
The point of that is that the grader does not need to see your generated output in the notebook. It only needs to call your functions and sometimes the volume of the output can interfere with the operation of the grader.
Thanks. I am checking my functions again, as I seem to have assumptions regarding object dimentionality hardcoded.
Thanks for following up on this. If that investigation doesn’t turn up a solution, then please check your DMs (direct messages) for a message from me about other alternatives.
he additional check was successfull - I found out that I mistakenly referred to a wrong object within one of the functions, i.e., I referred to an established dataset (a dictionary) instead of referencing a function argument. Both had similarly looking name and at the same time, by pure chance, the wrong solution worked in testing. Kind of coder’s bad luck:) Thanks for the inspiring discussion paulinpaloalto!
1 Like