freeCodeCamp/curriculum/challenges/english/11-machine-learning-with-python/tensorflow/natural-language-processing-with-rnns-training-the-model.english.md
Oliver Eyton-Williams bd68b70f3d
Feat: hide blocks not challenges (#39504)
* fix: remove isHidden flag from frontmatter

* fix: add isUpcomingChange

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

* feat: hide blocks not challenges

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-09-03 15:07:40 -07:00

1.0 KiB

id, title, challengeType, videoId
id title challengeType videoId
5e8f2f13c4cdbe86b5c72da2 Natural Language Processing With RNNs: Training the Model 11 hEUiK7j9UI8

Description

Tests

question:
  text: |
    Fill in the blanks below to save your model's checkpoints in the `./checkpoints` directory and call the latest checkpoint for training:

    ```py
    checkpoint_dir = __A__
    checkpoint_prefix = os.path.join(checkpoint_dir, 'ckpt_{epoch}')

    checkpoint_callback = tf.keras.callbacks.__B__(
        filepath=checkpoint_prefix,
        save_weights_only=True
    )

    history = model.fit(data, epochs=2, callbacks=[__C__])
    ```

  answers:
    - |
      A: `'./training_checkpoints'`

      B: `ModelCheckpoint`

      C: `checkpoint_prefix`
    - |
      A: `'./checkpoints'`

      B: `ModelCheckpoint`

      C: `checkpoint_callback`
    - |
      A: `'./checkpoints'`

      B: `BaseLogger`

      C: `checkpoint_callback`
  solution: 2