Skip to content

Commit

Permalink
[ci] Fixes flaky early stopping training test (#2879)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfliu committed Nov 28, 2023
1 parent 36d4aec commit c62a0e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public void testEarlyStoppingStopsOnEpoch1AsMaxDurationIs1ms() throws Exception
}

TrainingResult trainingResult = trainer.getTrainingResult();
Assert.assertEquals(trainingResult.getEpoch(), 1);
Assert.assertTrue(trainingResult.getEpoch() < 10); // Stop epoch is before 10
}
}
}
Expand Down

0 comments on commit c62a0e9

Please sign in to comment.