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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Algorithms Questions!