I have passed all the test in "get_country" and "get_accuracy" still it showing "There was a problem grading your submission. Check stderr for more details" i don't why?



The most common cause of this is directly referencing the global variable word_embeddings in the body of your get_country function. What if the grader passes a different embeddings dictionary?

In these courses referencing global variables in the local scope of your functions is always a mistake. It may work in the notebook, but the point is that the code is not general.

4 Likes

I have the same error as well, can you please let me know were you able to resolve the error? if so what did you do?

Did you read what I said in my previous response on this thread.

1 Like

Thanks a lot. I had the same issue and your comment solved it.