Skip to content

Instantly share code, notes, and snippets.

@radi-cho
Created February 18, 2023 17:08
Show Gist options
  • Save radi-cho/ac5203c9e1b3d14e365b552db5ad01f4 to your computer and use it in GitHub Desktop.
Save radi-cho/ac5203c9e1b3d14e365b552db5ad01f4 to your computer and use it in GitHub Desktop.
model.compile(optimizer=Adam(3e-5))
early_stopping = tf.keras.callbacks.EarlyStopping(monitor='loss', patience=3)
model.fit(tf_train_dataset, epochs=10, callbacks=[early_stopping])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment