I have two generators:
generator1 = CustomGen(X1,X1, length=W, stride = 1,sampling_rate=1, batch_size=bt_size)
generator2 = CustomGen(X2,X2, length=W, stride = 1,sampling_rate=1, batch_size=bt_size)
that are created using the function adopted from Custom Data Generator for Keras LSTM with TimeSeriesGenerator:
class CustomGen(TimeseriesGenerator):
def __getitem__(self, idx):
x, y = super().__getitem__(idx)
# do processing here
return x, x
Each object has m number of batches. I would like to join these two objects into one having a total of 2m batches.