diff --git a/src/mlpack/tests/ann_dist_test.cpp b/src/mlpack/tests/ann_dist_test.cpp index a3930a0b4d..4232c0042d 100644 --- a/src/mlpack/tests/ann_dist_test.cpp +++ b/src/mlpack/tests/ann_dist_test.cpp @@ -77,7 +77,6 @@ TEST_CASE("JacobianBernoulliDistributionTest", "[ANNDistTest]") module.LogProbBackward(target, jacobianB); REQUIRE(arma::max(arma::max(arma::abs(jacobianA - jacobianB))) <= 1e-5); - } } @@ -122,7 +121,7 @@ TEST_CASE("JacobianBernoulliDistributionLogisticTest", "[ANNDistTest]") } module.LogProbBackward(target, jacobianB); - REQUIRE(arma::approx_equal(jacobianA, jacobianB, "both", 5e-3, 5e-3)); + REQUIRE(arma::approx_equal(jacobianA, jacobianB, "both", 3e-5, 3e-5)); } } diff --git a/src/mlpack/tests/ann_layer_test.cpp b/src/mlpack/tests/ann_layer_test.cpp index ac9e6b9891..beb1339f56 100644 --- a/src/mlpack/tests/ann_layer_test.cpp +++ b/src/mlpack/tests/ann_layer_test.cpp @@ -351,7 +351,6 @@ TEST_CASE("SimpleAlphaDropoutLayerTest", "[ANNLayerTest]") module.Backward(input, input, delta); REQUIRE(arma::as_scalar(arma::max(arma::abs(arma::mean(delta) - 0) <= 0.05))); - // Test the Forward function when testing phase. module.Deterministic() = true; module.Forward(input, output);