Skip to content

Commit

Permalink
relax check range for sgd_test
Browse files Browse the repository at this point in the history
  • Loading branch information
mli committed Feb 24, 2016
1 parent e4743de commit aa8de43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/cpp/sgd_learner_test.cc
Expand Up @@ -42,7 +42,7 @@ TEST(SGDLearner, Basic) {

auto callback = [objv](
int epoch, const sgd::Progress& train, const sgd::Progress& val) {
EXPECT_LT(fabs(objv[epoch] - train.loss), 1e-5);
EXPECT_LT(fabs(objv[epoch] - train.loss), 5e-5);
};
learner.AddEpochEndCallback(callback);
learner.Run();
Expand Down

0 comments on commit aa8de43

Please sign in to comment.