Skip to content

Commit

Permalink
Merge pull request #465 from QData/run-training-bug
Browse files Browse the repository at this point in the history
Run training bug
  • Loading branch information
jxmorris12 committed May 23, 2021
2 parents e9fde99 + facad24 commit 6950621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion textattack/commands/train_model/run_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ def loss_backward(loss):
tb_writer.add_scalar("epoch_eval_score", eval_score, epoch)

if args.checkpoint_every_epoch:
_save_model_checkpoint(model, args.output_dir, args.global_step)
_save_model_checkpoint(model, args.output_dir, global_step)

logger.info(
f"Eval {'pearson correlation' if args.do_regression else 'accuracy'}: {eval_score*100}%"
Expand Down

0 comments on commit 6950621

Please sign in to comment.