When creating a post, please add:
- Week # must be added in the tags option of the post.
- Link to the classroom item you are referring to:
- Description (include relevant info but please do not post solution code or your entire notebook):
When creating a post, please add:
see if this explanation helps
remember when test result which you have got shows a different results than the expected, chances are that you might have used global variables instead of local variables.
Also remember you are only suppose to right codes as per instructions already given to you and not hard code the other to recall functions.
image removed by moderator as it contained grade cell codes which grades your assignment. avoid posting codes, links to assignment as it is against community guidelines
I am not able to resolve the issue
please don’t post codes on pubic post, it is against community guidelines.
You are not following code instructions explanation given before the grade cells, which clearly mentions what parameters to be used while instantiating TextVectorization class.
you were suppose to use only standardized and output sequence length for the text vectorization class.
I also noticed you have added an extra code line before instantiating the textvectorozation class.
You are not suppose to add any extra code line other than what instructions were already given. changing, deleting, adding anything in the assignment either causes failed test results or failed grader submission.
I am sharing an image of how the grade cell fit vectorizer looks without codes and also read the instructions given before the grade cell to help you compare my response to your codes which will help you in debugging.
For code line
Fit the tokenizer to the training sentences
and the argument you need to use for training sentences is dataset and not train_sentences
Args:
dataset (tf.data.Dataset): Tensorflow dataset with training sentences.
It is resolved now. Thank you @Deepti_Prasad