Question: Write the get_batch() function below. This function takes a dataset and a batch size and returns a batch of data from the dataset. The batch
Write the get_batch() function below. This function takes a dataset and a batch size and returns a batch of data from the dataset. The batch should be a tuple of tensors. The first tensor should be the inputs and the second tensor should be the outputs. The inputs should be a tensor of size batch_size x 4 and the outputs should be a tensor of size batch_size x 2. The inputs should be the first four values in each tuple in the dataset and the outputs should be the last two values in each tuple in the dataset ?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
