Assertion the result not match C3W1 assignment fn create batch dataset

Hello @skinx.learning

Two corrections required.

  1. first correction in GRADED FUNCTION: line_to_tensor
    Below code line is recalled incorrectly
    Split the input line into individual characters

Kindly use this image to make the correction

  1. Second error the way shuffling is recalled by you is incorrect, please refer the below link to make the correction

#Assemble the final dataset with shuffling, batching, and prefetching

https://www.tensorflow.org/api_docs/python/tf/data/Dataset#shuffle

Make sure you assign the value to the buffer size assigned as 10000 and use reshuffle_each_iteration as true

Regards
DP

1 Like