C3W2 assignment 2 Wrong output

hi @icreative

Your codes are correct for fit_vectorizer, so the next place to check your codes would be train_val_dataset codes where train_dataset is recalled and used in the fit_vectorizer grade cells.

So make sure first you computed the correct number of sentences (train_size) which you will use in training(the first code) where you int to the len function to the data and multiple to TRAINING SPLIT

Then slice text and labels based on their position in the column

Then split the sentences and labels into train and validation splits into train_texts, validation_texts, train_labels and validation_labels using train_size

then create the train_dataset and validation dataset using tf.data.Dataset.from_tensor_slices to the previously recalled codes of train_validation splits.

Regards
DP