C3W2 - IOPub issue on fit_label_encoder function

hi @xvalnsz

First of all thank you for following community guidelines as only codes are asked to shared via DM by mentors if they want to check for probable error in your codes. As you are using first time discourse community, I should also probably give a heads up on to share any grade cell codes here as it is against community guidelines.

Now comes to your error.

An IOPub data rate exceeding points you to check if your codes are correctly recalled for previous grade cells even though you have passed the unittests.

Kindly check if the dataset codes were recalled as per the right function recall for text i.e. text_vectorizet and for labels function recall would be label_encoder (at this place most learner common mistake was missing an extra tuple when recalling dataset lambda. So make sure you tuple the lambda which includes the text and labels.

If this was recalled as stated then next check point is to check if fit vevtorizer and fit label encoder cell were not hard_coded(per se recalling a code step into multiple step, using global variable instead of local variables or assigned call arguments for a particular grade cell)

if the above was done correctly, then last checkpoint is train_val_dataset codes, the hint to the correction you can find in ungraded labs but otherwise if I have to explain how to write the codes for this would be first to determine the train_size and validation size using the length function to the data argument making sure to apply the int function.

Next using the train_size and validation_size determine first the train_texts, validation_texts, train_labels and validation_labels.
Then create the training_dataset and validation_dataset using the tf.data.Dataset.from_tensor_slices to the (train_text, train_labels) and (validation_texts, validation_labels)

Let me know if this helps you debug.

Regards
DP