Files
freeCodeCamp/curriculum/challenges/chinese/11-machine-learning-with-python/tensorflow/natural-language-processing-with-rnns-building-the-model.md
Randell Dawson 94f0cf0ef8 chore(learn): Remove remaining isHidden keys from frontmatter (English and Chinese challenges) (#39809)
* fix: remove isHidden key from tool template

* fix: removed isHidden key from English challenges

* fix: remove isHidden key from Chinese challenges
2020-10-08 14:18:47 +02:00

1.1 KiB

id, challengeType, videoId
id challengeType videoId
5e8f2f13c4cdbe86b5c72da1 11 32WBFS7lfsw

Description

Tests

question:
  text: |
    Fill in the blanks below to complete the `build_model` function:

    ```py
    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`
  solution: 3