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
def model_final (input_shape, output_sequence_length, english_vocab_size, french_vocab_size): | |
""" | |
Build and train a model that incorporates embedding, encoder-decoder, and bidirectional RNN | |
:param input_shape: Tuple of input shape | |
:param output_sequence_length: Length of output sequence | |
:param english_vocab_size: Number of unique English words in the dataset | |
:param french_vocab_size: Number of unique French words in the dataset | |
:return: Keras model built, but not trained | |
""" | |
# Hyperparameters |