Created
February 6, 2019 09:55
-
-
Save prateekjoshi565/3de6db5edd3f77a8eba5bc253e5011b4 to your computer and use it in GitHub Desktop.
Model Compilation
This file contains 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
# model compilation (with 512 hidden units) | |
model = build_model(deu_vocab_size, eng_vocab_size, deu_length, eng_length, 512) | |
rms = optimizers.RMSprop(lr=0.001) | |
model.compile(optimizer=rms, loss='sparse_categorical_crossentropy') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment