Last active
June 12, 2020 08:47
-
-
Save trongan93/cef76a5f0b0f9dc2b64070b894ec6401 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# optimization setup | |
sgd = SGD(lr=0.01, momentum=0.9, nesterov=True) | |
model.compile( | |
loss='categorical_crossentropy', | |
optimizer=sgd, | |
metrics=['accuracy']) | |
# training | |
model.fit( | |
X_train, | |
y_train, | |
batch_size=32, | |
epochs=18, | |
validation_split=0.2, | |
shuffle=True, | |
verbose=2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment