From 5f2a184faedf33b95753e14580c0db0ae2c5af18 Mon Sep 17 00:00:00 2001 From: Roshan Swain Date: Wed, 7 Apr 2021 13:09:13 +0530 Subject: [PATCH] fixed styling --- src/mlpack/tests/ann_dist_test.cpp | 3 +-- src/mlpack/tests/ann_layer_test.cpp | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) 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);