diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 030e251..4188cc3 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -48,7 +48,7 @@ - + @@ -57,7 +57,7 @@ - + @@ -92,8 +92,8 @@ - - + + @@ -226,7 +226,7 @@ - + @@ -267,12 +267,12 @@ - @@ -397,8 +397,8 @@ - - + + diff --git a/train.py b/train.py index e144d98..0142524 100644 --- a/train.py +++ b/train.py @@ -106,8 +106,11 @@ def experiment(repeats, series, seed): train_trimmed = train_scaled[train_scaled.shape[0] - t1 * batch_size:, :] lstm_model = fit_lstm(train_trimmed, batch_size, 30, 4) # forecast the entire training dataset to build up state for forecasting + print(train_trimmed) + print(train_trimmed[:, 0]) + print(train_trimmed[:, :]) if seed: - train_reshaped = train_trimmed[:, 0].reshape(len(train_trimmed), 1, lag2) + train_reshaped = train_trimmed[:, :].reshape(len(train_trimmed), 1, lag2) lstm_model.predict(train_reshaped, batch_size=batch_size) # forecast test dataset test_reshaped = test_scaled[:, 0:-1]