Change thresh in test (#27378)

Change thresh
This commit is contained in:
Zach Mueller
2023-11-09 04:44:36 -05:00
committed by GitHub
parent 085ea7e56c
commit e9adb0c9cf

View File

@@ -169,7 +169,7 @@ class ExamplesTestsNoTrainer(TestCasePlus):
run_command(self._launch_args + testargs)
result = get_results(tmp_dir)
self.assertGreaterEqual(result["eval_accuracy"], 0.75)
self.assertLess(result["train_loss"], 0.5)
self.assertLess(result["train_loss"], 0.6)
self.assertTrue(os.path.exists(os.path.join(tmp_dir, "epoch_0")))
self.assertTrue(os.path.exists(os.path.join(tmp_dir, "ner_no_trainer")))