Skip to content

Instantly share code, notes, and snippets.

@nageshsinghc4
Created September 2, 2020 10:39
Show Gist options
  • Save nageshsinghc4/bbff6c2d6dc44815e2f82fdcbefee8af to your computer and use it in GitHub Desktop.
Save nageshsinghc4/bbff6c2d6dc44815e2f82fdcbefee8af to your computer and use it in GitHub Desktop.
es = EarlyStopping(monitor='val_loss', mode='min', verbose=1)
history = model.fit([encoder_input_sequences, decoder_input_sequences], decoder_targets_one_hot,
batch_size=BATCH_SIZE,
epochs=20,
callbacks=[es],
validation_split=0.1,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment