Complete the code to create a TensorFlow dataset pipeline that reads data from a CSV file.
dataset = tf.data.experimental.make_csv_dataset('data.csv', batch_size=[1])
The batch size controls how many samples are processed together. 32 is a common batch size for training.
Complete the code to shuffle the dataset with a buffer size of 1000.
dataset = dataset.shuffle(buffer_size=[1])Shuffling with a buffer size of 1000 helps randomize the data well during training.
Fix the error in the pipeline to batch the dataset correctly.
dataset = dataset.batch([1])The batch() method expects an integer for batch size, not a method call or variable name.
Fill both blanks to map a function that normalizes features and then prefetch the dataset.
dataset = dataset.map([1]).prefetch([2])
Mapping applies the normalization function to each batch. Prefetching with AUTOTUNE improves pipeline speed.
Fill all three blanks to create a pipeline that caches data, repeats it for 5 epochs, and batches with size 64.
dataset = dataset.[1]().[2](5).[3](64)
Caching stores data in memory for faster access. Repeating 5 times allows training for 5 epochs. Batching groups samples for training.
