From 8960988f353c068041b2fb3faa1a46cc8d47550d Mon Sep 17 00:00:00 2001 From: erenup Date: Thu, 19 Sep 2019 01:10:05 +0800 Subject: [PATCH] fixed to find best dev acc --- examples/run_multiple_choice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/run_multiple_choice.py b/examples/run_multiple_choice.py index 5f1081f8ea..05f9a48f50 100644 --- a/examples/run_multiple_choice.py +++ b/examples/run_multiple_choice.py @@ -170,7 +170,7 @@ def train(args, train_dataset, model, tokenizer): results = evaluate(args, model, tokenizer) for key, value in results.items(): tb_writer.add_scalar('eval_{}'.format(key), value, global_step) - if results["eval_acc"] < best_dev_acc: + if results["eval_acc"] > best_dev_acc: best_dev_acc = results["eval_acc"] best_dev_loss = results["eval_loss"] best_steps = global_step