mirror of
https://github.com/newnius/YAO-optimizer.git
synced 2025-06-06 22:51:55 +00:00
update
This commit is contained in:
parent
eacbd26a01
commit
1cbe0bf37b
4
train.py
4
train.py
@ -108,9 +108,9 @@ def experiment(repeats, series, seed):
|
||||
# forecast the entire training dataset to build up state for forecasting
|
||||
print(train_trimmed)
|
||||
print(train_trimmed[:, 0])
|
||||
print(train_trimmed[:, :])
|
||||
print(train_trimmed[:, :-2])
|
||||
if seed:
|
||||
train_reshaped = train_trimmed[:, :].reshape(len(train_trimmed), 1, lag2+1)
|
||||
train_reshaped = train_trimmed[:, :-2].reshape(len(train_trimmed), 1, lag2)
|
||||
lstm_model.predict(train_reshaped, batch_size=batch_size)
|
||||
# forecast test dataset
|
||||
test_reshaped = test_scaled[:, 0:-1]
|
||||
|
Loading…
Reference in New Issue
Block a user