Skip to content

Instantly share code, notes, and snippets.

@siddharthganjoo
Created August 23, 2021 07:18
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 siddharthganjoo/ac4c0912c63a4f692e64ea7ee792e9ea to your computer and use it in GitHub Desktop.
Save siddharthganjoo/ac4c0912c63a4f692e64ea7ee792e9ea to your computer and use it in GitHub Desktop.
#training the model
from tensorflow.keras.optimizers import Adam
classifier.load_weights("weights")
opt3 = Adam(lr=0.001)
classifier.compile(optimizer = opt3, loss = 'categorical_crossentropy', metrics = ['accuracy'])
history = classifier.fit(x_train, y_train,validation_data=(x_test, y_test), batch_size = 10, epochs = 50)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment