Files
freeCodeCamp/curriculum/challenges/japanese/11-machine-learning-with-python/tensorflow/natural-language-processing-with-rnns-training-the-model.md
2022-01-20 20:30:18 +01:00

1.0 KiB

id, title, challengeType, videoId, bilibiliIds, dashedName
id title challengeType videoId bilibiliIds dashedName
5e8f2f13c4cdbe86b5c72da2 RNN を使用した自然言語処理: モデルのトレーニング 11 hEUiK7j9UI8
aid bvid cid
250542136 BV19v411w7Fi 409138327
natural-language-processing-with-rnns-training-the-model

--question--

--text--

次の空欄を埋めて、モデルのチェックポイントを ./checkpoints ディレクトリに保存し、トレーニングの最新のチェックポイントを呼び出してください。

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

--video-solution--

2