I pass all the test in the assignment but still not pass
hi @Vijayram
Please choose the right categories of specialisation, course, week when creating a post. You have chosen ai discussion which comes general category and prevent faster resolution of your issue.
Next whenever you create a post, if you have a got all the test passed and yet failed the grader, then kindly take a screenshot of the grader output by clicking on the show grader output which explains why you failed your assignment.
Please make sure to follow community guidelines by not posting any grade cell codes here.
P.S. in case you are not able to understand or choose the right category, you can also provide the necessary information in the body of message where you explain your issue.
for better understanding or use of discourse community refer FAQ section which guides you on how to post, what not to post and how to use this forum more creatively.
Regards
DP
Yes, as Deepti says, it is necessary to post your question in the correct category, so that the people who know that course can answer.
Just as a general point, note that passing the one set of tests in the notebook is never a guarantee that your code is completely correct. It’s always possible that you wrote your code in a way that is not “general” and the grader has a test case that is sufficiently different that your code fails.
For example, if you are asking about NLP C1 W3, then there is a classic mistake that a lot of students make: the get_country
function takes a word embedding dictionary as one of the arguments. But if you reference that dictionary by the global name of the variable that happens to be passed in the one test case (word_embeddings
), then you pass the tests in the notebook, but fail the grader. That is because the grader passes a different dictionary in its test case. Then get_accuracy
will also fail, but it calls get_country
. That’s just one example of code that is not general. There are lots of other ways to hit that sort of issue.