Files
freeCodeCamp/curriculum/challenges/english/11-machine-learning-with-python/tensorflow/natural-language-processing-with-rnns-building-the-model.md
miyaliu666 3ea2fe4f77 feat(i18n,curriculum): add Bilibili ids for Chinese (#43564)
Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-10-01 09:54:12 +05:30

1.1 KiB

id, title, challengeType, videoId, bilibiliIds, dashedName
id title challengeType videoId bilibiliIds dashedName
5e8f2f13c4cdbe86b5c72da1 Natural Language Processing With RNNs: Building the Model 11 32WBFS7lfsw
aid bvid cid
848015573 BV1YL4y1a7WS 409138016
natural-language-processing-with-rnns-building-the-model

--question--

--text--

Fill in the blanks below to complete the build_model function:

def build_mode(vocab_size, embedding_dim, rnn_units, batch_size):
    model = tf.keras.Sequential([
        tf.keras.layers.Embedding(vocab_size,
                                  embedding_dim,
                                  batch_input_shape=[batch_size, None]),
        tf.keras.layers.__A__(rnn_units,
                              return_sequences=__B__,
                              recurrent_initializer='glorot_uniform),
        tf.keras.layers.Dense(__C__)
    ])
    __D__

--answers--

A: ELU

B: True

C: vocab_size

D: return model


A: LSTM

B: False

C: batch_size

D: return model


A: LSTM

B: True

C: vocab_size

D: return model

--video-solution--

3