mirror of
https://github.com/newnius/YAO-optimizer.git
synced 2025-12-13 00:16:44 +00:00
update
This commit is contained in:
1
train.py
1
train.py
@@ -73,6 +73,7 @@ def fit_lstm(train, batch_size, nb_epoch, neurons):
|
||||
model.add(Dense(1))
|
||||
model.compile(loss='mean_squared_error', optimizer='adam')
|
||||
for i in range(nb_epoch):
|
||||
print("Epoch {}/{}".format(i, nb_epoch))
|
||||
model.fit(X, y, epochs=1, batch_size=batch_size, verbose=0, shuffle=False)
|
||||
model.reset_states()
|
||||
return model
|
||||
|
||||
Reference in New Issue
Block a user