I currently have the following data:
f_map, inputs, s_bias = ml_dataset.dataset_for_s_bias()
where f_map is a tensor of matrices, inputs is a tensor of floats, and s_bias is a tensor of floats. The first two, f_map and inputs, are the inputs to my ML regression algorithm, and s_bias is the expected output. The reason there are two kinds of inputs is because f_map is processed using a CNN, and the CNN turns each matrix in f_map into a float, which is concatenated with the inputs tensor, and the resulting tensor is inputted into an MLP to get a prediction for s_bias.
I don’t know how to split f_map, inputs and s_bias into batches. I tried using a dataloader, but this causes me problems in my CNN which expects a tensor (I have an unsqueeze operation in my CNN, but dataloader is incompatible with unsqueeze). I need f_map, inputs, and s_bias to be split the same way and preserve the order. What is the best way to do this?