From eacbd26a01c1fa47c92f9e416cc55fc711018a76 Mon Sep 17 00:00:00 2001 From: Newnius Date: Sat, 2 May 2020 10:55:34 +0800 Subject: [PATCH] update --- .idea/workspace.xml | 2 +- train.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 4188cc3..9870cd7 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -226,7 +226,7 @@ - + diff --git a/train.py b/train.py index 0142524..fe383f9 100644 --- a/train.py +++ b/train.py @@ -110,7 +110,7 @@ def experiment(repeats, series, seed): print(train_trimmed[:, 0]) print(train_trimmed[:, :]) if seed: - train_reshaped = train_trimmed[:, :].reshape(len(train_trimmed), 1, lag2) + train_reshaped = train_trimmed[:, :].reshape(len(train_trimmed), 1, lag2+1) lstm_model.predict(train_reshaped, batch_size=batch_size) # forecast test dataset test_reshaped = test_scaled[:, 0:-1]