C3W3 ssignment grading in jupyter notebook fails

In the course ‘Natural Language Processing with Sequence Models’, the assignment of the third week (Siamese Networks) fails at grading. I receive the following error code “There was an error grading your submission. Details:\nname ‘text_vectorization’ is not defined” for the grading of the ‘Train model’ exercise. Because of this I am unable to complete my assignment and get the course certificate. I already refreshed the page and executed all the cells back multiple times.

{IMAGE SCREENSHOT REMOVED BY MODERATOR AS POSTING A GRADE CELL IS AGAINST COMMUNITY GUIDELINES}


Screenshot 2024-04-10 at 12.23.37

However I get this error on associated test
Screenshot 2024-04-10 at 12.35.51

Hello @arthur_tainmont

First of all you are not suppose to share images of grader cell, it is against community guidelines. Kindly remove the first image from your post. refer Code of conduct FAQ in future to post your query.

Now comes to your error, the reason you failed the trained model because you are using an incorrect argument recall function to set the vocabulary size.

Hint: refer the argument which mentions
text_vectorizer: trained instance of TextVecotrization
So you using text.vectorization to the vocabulary size is incorrect and should be instead defined using text.vectorizer even for the size of the vocabulary.

Regards
DP

1 Like

I am sorry for the image.

Thank you my problem is fixed.

1 Like