Skip to content

Commit

Permalink
Add arg for fit() method
Browse files Browse the repository at this point in the history
  • Loading branch information
koki0702 committed Jun 19, 2018
1 parent 17faf16 commit 4e0dd07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ch06/train_rnnlm.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
trainer = RnnlmTrainer(model, optimizer)

# 勾配クリッピングを適用して学習
trainer.fit(xs, ts, max_epoch, batch_size, time_size, max_grad)
trainer.fit(xs, ts, max_epoch, batch_size, time_size, max_grad,
eval_interval=20)
trainer.plot(ylim=(0, 500))

# テストデータで評価
Expand Down

0 comments on commit 4e0dd07

Please sign in to comment.