diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 9c87a0a..e701f1a 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -223,7 +223,7 @@ - + diff --git a/train.py b/train.py index e50861a..5a799b2 100644 --- a/train.py +++ b/train.py @@ -110,10 +110,10 @@ lstm_model.predict(train_reshaped, batch_size=batch_size) predictions = list() for j in range(len(test_scaled)): # make one-step forecast - X, y = test_scaled[j, 0:-1], test_scaled[j, -1] - yhat = forecast_lstm(lstm_model, batch_size, X) + #X, y = test_scaled[j, 0:-1], test_scaled[j, -1] + yhat = forecast_lstm(lstm_model, batch_size, test_scaled) # invert scaling - yhat = invert_scale(scaler, X, yhat) + yhat = invert_scale(scaler, test_scaled, yhat) # invert differencing yhat = inverse_difference(raw_values, yhat, len(test_scaled) + 1 - j) # store forecast