1
0
mirror of https://github.com/newnius/YAO-optimizer.git synced 2025-12-13 00:16:44 +00:00
This commit is contained in:
2020-05-02 09:28:09 +08:00
parent c5d3fdef8d
commit d500ec5877
2 changed files with 2 additions and 2 deletions

View File

@@ -102,7 +102,7 @@ scaler, train_scaled, test_scaled = scale(train, test)
lstm_model = fit_lstm(train_scaled, 32, 30, 4)
# forecast the entire training dataset to build up state for forecasting
train_reshaped = train_scaled[:, 0].reshape(len(train_scaled), 1, 1)
lstm_model.predict(train_reshaped, batch_size=1)
lstm_model.predict(train_reshaped, batch_size=32)
# walk-forward validation on the test data
predictions = list()