C1W3 Assignment ! correct answers but only %

Hello
I solved codes and I got all correct answers as expected.
I tried submitting the assignment but I always get fixed 60%.
I submitted 8 times but getting the same issue.
Upon checking, it appears that the parts of “Test_get_country” and “Test get_accuracy” did not receive passing marks. It is the same all the times.

Are you using a global variable for embeddings? You can check your variables for get_country. Here is a link for someone who may have your problem.

1 Like

I followed all rules :
No new variables.
No new imports for any library.

How can I reset my Assignment?. I mean getting fresh copy.

Thanks

Hi @khaledreemy,

By following these instructions: Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera

2 Likes

Hello,

I have the same issue as @khaledreemy. I did also as you instructed and reset Assignement but I still have the same error. I got all correct answers but I always get fixed at 60%. I think that there is an issue for the Test_get_country and Test get_accuracy functions.

1 Like

No Way !!
I tried resetting my assignment with a fresh copy.
I solved all 5 questions. I am still getting 60% with the same zero grades on “Test_get_country” & “Test_get_accuracy”.
I found no way to pass this assignment. I might quit the course because of it only.

I AM STUCK WITH THIS ASSIGNMENT.

Please find us a solution.

Hi @Majov & @khaledreemy,

99% of the times when learners are facing issues in get_country & get_accuracy, it is because they are using a global variable in their get_country. Once that is fixed, get_accuracy gets fixed automatically.

Please make sure you are not using the global variable for embeddings in get_country, instead using the function parameter.

Let me know if this didn’t help.

Best,
Mubsi

2 Likes

In “get_country” function don’t use the global word_embedding pickled model. Instead use the parameter sent inside the function itself.
Thanks

Thank you for your help @Mubsi & @khaledreemy, it does work correctly right now.

C3 Graded Output.pdf (3.9 MB)
Hi. I am facing a lot of issue in this C3 graded output. Have replaced the word_embeddings with embeddings but still getting embeddings as undefined. Please fix my issue. Will be grateful.

So instead of word_embeddings, we have to use only embeddings? @khaledreemy

I guess so. Please send me the link to the discussion page.

HI, I guess you have changed word_embeddings to embeddings everywhere.
Instead you should only use embeddings in get_country function because parameters have embeddings.
In getaccuracy, the parameters have word_embeddings, so have to use word_embeddings.

1 Like

Thank you Rakshat
I have already solved the problem. That was a long time back.
Anyway, thanks for your help. I really appreciate that.

1 Like

Thanks for your reply. I have resolved it too but means a lot.