Skip to content

Instantly share code, notes, and snippets.

@aniruddha27
Last active August 10, 2020 17:50
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 aniruddha27/e01f63486503841bf5f2dd2066f09508 to your computer and use it in GitHub Desktop.
Save aniruddha27/e01f63486503841bf5f2dd2066f09508 to your computer and use it in GitHub Desktop.
# Compile
optim = RMSprop(learning_rate=0.00001)
model.compile(loss='categorical_crossentropy',
optimizer=optim,
metrics=['accuracy'])
# Fit
history = model.fit(x_train,y_train,
epochs=25,
validation_data=(x_test,y_test),
batch_size=32,
verbose=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment