C1_W3 assignment grader errors

Hi,

When I run the notebook, all the tests were passed by the grader. But, I got zero score for the following test/questions:

Test get_country
Test get accuracy

I have attached the screenshots for the reference. Can someone help on this please?

Thanks & Regards,
Balaji


Passing the tests in the notebook does not prove your code is perfect. The grader uses different test to score your work.

It seems your code only works correctly for certain test cases, and still has errors.

I have the same issue. Did you figure out the problem? Wanted to know if anyone had similar issue and if it is fixed, I am not looking for answers :slight_smile: Would appreciate your feedback.

Hello @Balaji_K , I had the same issue and I even replied to your message. But I found the issue and fixed it. I hope you can solve the issue as well soon. All the best.
I would suggest going through your function definition once more and I am sure you will find it as well (if we both made same error)

Best of luck :+1:

Hello @lakii, thanks for your response.
I will take a look.

@Balaji_K Has your issue been fixed? I have trying to see the problem, but I cant seem to figure it out for the life of me.

Same issue! any resolution?

I am having same error , Please let me know if anyone found any solutions.

Hi @lakii,

I am also facing the same issue as @Balaji_K. Could you please suggest me what actually went wrong. I checked the function definition too.

Your help will be greatly appreciated.

Thanks & Regards
Santhosh

Hi @SANTHOSH_PEKETI

The most common mistake is using global variable word_embeddings instead of the local embeddings variable that you should use.
So please check if you are not using word_embeddings inside the function.

Cheers

Hi @arvyzukai,

Yes, this suggestion helped me a lot.

Thanks & Regards,
Santhosh

Hello
I have exactly the same problem. Did your problem get solved? Can you help me? What should I do?

Hi @fateme_zarin

Make sure you use embeddings variable inside the function you need to complete.

Here is the similar thread.

Cheers

thank you so much

If test get_country fail, so the test get_accuracy will fail too. The tip is checking the function get_country carefully.

Hello! I have a similar problem
Please tell me what/where is stderr…