Skip to content

Instantly share code, notes, and snippets.

@ferrygun
Created June 8, 2020 11:43
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 ferrygun/9e358e0660259dccbfe9c37af55020c0 to your computer and use it in GitHub Desktop.
Save ferrygun/9e358e0660259dccbfe9c37af55020c0 to your computer and use it in GitHub Desktop.
opt = tf.keras.optimizers.Adam(lr=0.001, decay=1e-6)
model.compile(
loss='sparse_categorical_crossentropy',
optimizer=opt,
metrics=['accuracy'],
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment