I used the TimeseriesGenerator to generate the trainning dataset.
n_input = 12 n_features = 1 generator = TimeseriesGenerator(scaled_train_data, target, lengt