mirror of
https://github.com/newnius/YAO-optimizer.git
synced 2025-06-07 07:01:56 +00:00
update
This commit is contained in:
parent
92c305e29d
commit
6e27af40ea
2
train.py
2
train.py
@ -104,7 +104,7 @@ train, test = supervised_values[0:-12], supervised_values[-12:]
|
|||||||
scaler, train_scaled, test_scaled = scale(train, test)
|
scaler, train_scaled, test_scaled = scale(train, test)
|
||||||
|
|
||||||
# fit the model
|
# fit the model
|
||||||
lstm_model = fit_lstm(train_scaled, 1, 3000, 4)
|
lstm_model = fit_lstm(train_scaled, 1, 30, 4)
|
||||||
# forecast the entire training dataset to build up state for forecasting
|
# forecast the entire training dataset to build up state for forecasting
|
||||||
train_reshaped = train_scaled[:, 0].reshape(len(train_scaled), 1, 1)
|
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=1)
|
||||||
|
Loading…
Reference in New Issue
Block a user