C3W3 ssignment grading in jupyter notebook fails

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