mirror of
https://github.com/newnius/YAO-optimizer.git
synced 2025-06-07 15:11:56 +00:00
update
This commit is contained in:
parent
8607620423
commit
e8cdfc2c51
2
train.py
2
train.py
@ -72,7 +72,7 @@ def fit_lstm(train, batch_size2, nb_epoch, neurons):
|
|||||||
print("Epoch {}/{}".format(i, nb_epoch))
|
print("Epoch {}/{}".format(i, nb_epoch))
|
||||||
model.fit(X, y, epochs=1, batch_size=batch_size2, verbose=0, shuffle=False)
|
model.fit(X, y, epochs=1, batch_size=batch_size2, verbose=0, shuffle=False)
|
||||||
#loss, accuracy = model.evaluate(X, y)
|
#loss, accuracy = model.evaluate(X, y)
|
||||||
print(loss, accuracy)
|
#print(loss, accuracy)
|
||||||
model.reset_states()
|
model.reset_states()
|
||||||
return model
|
return model
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user