Pls Help for Assignment 3: Hello Vectors

For the NLP specialization, course Classification and Vector Spaces, week 3 Assignment 3: Hello Vectors,

Exercies 3: Test_get_country
Exercies 4: Test get_accuracy

It shows “There was a problem grading your submission. Check stderr for more details.”
But in the lab, it shows all tests passed.

I do not know if this is a bug or I made mistakes for my solutions.

Hey @Tong_Shen1,
The issue is pretty trivial. Please note this for future references as well, since it is highly likely you might face this issue in the future. In your implementation of get_country, you have used word_embeddings variable instead of embeddings variable, which happens to be a global variable, and hence, and the issue arises. You are supposed to use local variables unless and until it has been explicitly stated to use global variables instead. Please check your implementations for any other global variables you might have used. Let us know if this helps you out.

Cheers,
Elemento

Hi Elemento

Thanks for the reply. However, I have tried as suggested but it is still the same. And for the Exercies 4: Test get_accuracy, there is no such issue but still get the same outcome: “There was a problem grading your submission. Check stderr for more details.” Therefore, I guess there may be something else wrong. Pls help! Thanks!

Hey @Tong_Shen1,
Did you make sure to save the new implementation, and run the notebook with the new implementation before submitting it? As for exercise 4, the issue could simply arise because it uses the implementation of exercise 3, which is bug-ridden.

Cheers,
Elemento

1 Like

Now it works! Thank you so much!