1
0
mirror of https://github.com/newnius/YAO-optimizer.git synced 2025-12-15 09:06:43 +00:00
This commit is contained in:
2020-05-02 12:41:03 +08:00
parent 9ff2933e74
commit a43cb031c1
2 changed files with 14 additions and 11 deletions

View File

@@ -60,6 +60,7 @@ def invert_scale(scaler, X, yhat):
# fit an LSTM network to training data
def fit_lstm(train, batch_size2, nb_epoch, neurons):
print(train)
X, y = train[:, 0:-1], train[:, -1]
X = X.reshape(X.shape[0], 1, X.shape[1])
print(X, y)