-
-
Save Sanlap1997/1b42a1bf0735eaf9d47e0c4f2a8e95be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EPOCHS = 25 | |
history = model.fit(train_x, | |
train_y, | |
epochs=EPOCHS, | |
validation_data=(test_x, test_y), | |
callbacks = [tf.keras.callbacks.EarlyStopping(monitor='val_loss', min_delta=0, patience=10, verbose=0, mode='min'), | |
tf.keras.callbacks.ModelCheckpoint(model_path,monitor='val_loss', save_best_only=True, mode='min', verbose=0)] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment