I am generating a dataset in batches to feed into an LSTM network in Keras.
Here is my generator:
def generator(self): counter = 0