Skip to content

Commit

Permalink
Merge pull request #143 from barak/master
Browse files Browse the repository at this point in the history
32-bit safety in big random number.
  • Loading branch information
zoq committed Dec 5, 2019
2 parents a7798de + 176fbef commit d70b12a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/callbacks_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ TEST_CASE("EarlyStopAtMinLossCallbackTest", "[CallbacksTest]")

// Instantiate the optimizer with a number of iterations that will take a
// long time to finish.
StandardSGD s(0.0003, 1, 10000000000, -10);
StandardSGD s(0.0003, 1, 2000000000, -10);
s.ExactObjective() = true;

// The optimization process should return in one second.
Expand Down Expand Up @@ -470,7 +470,7 @@ TEST_CASE("TimerStopCallbackTest", "[CallbacksTest]")

// Instantiate the optimizer with a number of iterations that will take a
// long time to finish.
StandardSGD s(0.0003, 1, 10000000000, -100, true);
StandardSGD s(0.0003, 1, 2000000000, -100, true);

arma::wall_clock timer;
timer.tic();
Expand Down

0 comments on commit d70b12a

Please sign in to comment.