Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created December 24, 2020 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/401b9bbafe90c08fe9936f2caf590648 to your computer and use it in GitHub Desktop.
Save amankharwal/401b9bbafe90c08fe9936f2caf590648 to your computer and use it in GitHub Desktop.
adam = Adam(lr=0.0005)
model.compile(optimizer=adam, loss="mse")
history = model.fit_generator(train_generator,
steps_per_epoch=STEP_SIZE_TRAIN,
validation_data=validation_generator,
validation_steps=STEP_SIZE_VAL,
epochs=30)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment