[go: nahoru, domu]

Skip to content

Commit

Permalink
Loosen tolerance on SPALeRA SGD test.
Browse files Browse the repository at this point in the history
  • Loading branch information
rcurtin committed Mar 22, 2018
1 parent 7c552a7 commit e464d5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mlpack/tests/spalera_sgd_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ BOOST_AUTO_TEST_CASE(LogisticRegressionTest)

// Ensure that the error is close to zero.
const double acc = lr.ComputeAccuracy(data, responses);
BOOST_REQUIRE_CLOSE(acc, 100.0, 0.5); // 0.5% error tolerance.
BOOST_REQUIRE_CLOSE(acc, 100.0, 1.5); // 1.5% error tolerance.

const double testAcc = lr.ComputeAccuracy(testData, testResponses);
BOOST_REQUIRE_CLOSE(testAcc, 100.0, 0.8); // 0.8% error tolerance.
BOOST_REQUIRE_CLOSE(testAcc, 100.0, 2.4); // 2.4% error tolerance.
}
}

Expand Down

0 comments on commit e464d5f

Please sign in to comment.