1
0
mirror of https://github.com/newnius/YAO-optimizer.git synced 2025-12-13 08:26:43 +00:00
This commit is contained in:
2020-05-02 10:57:30 +08:00
parent 6f26c20c43
commit 580c4716b9
2 changed files with 2 additions and 2 deletions

View File

@@ -114,7 +114,7 @@ def experiment(repeats, series, seed):
lstm_model.predict(train_reshaped, batch_size=batch_size)
# forecast test dataset
test_reshaped = test_scaled[:, 0:-1]
test_reshaped = test_reshaped.reshape(len(test_reshaped), 1, 1)
test_reshaped = test_reshaped.reshape(len(test_reshaped), 1, lag2)
output = lstm_model.predict(test_reshaped, batch_size=batch_size)
predictions = list()
for i in range(len(output)):