Fix style issues

This commit is contained in:
Prabhat
2018-04-06 22:54:58 +05:30
parent b5424b3dce
commit d156b8d85e
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -254,6 +254,7 @@ class ELU
//! inputs.
double lambda;
}; // class ELU
// Template alias for SELU using ELU class
using SELU = ELU<arma::mat, arma::mat>;
} // namespace ann
@@ -388,14 +388,14 @@ BOOST_AUTO_TEST_CASE(SELUFunctionDerivativeTest)
selu.Backward(std::move(input), std::move(error), std::move(derivatives));
BOOST_REQUIRE_LE(arma::as_scalar(arma::abs(arma::mean(derivatives) -
selu.Lambda())), 10e-5);
selu.Lambda())), 10e-4);
input.fill(-1);
selu.Backward(std::move(input), std::move(error), std::move(derivatives));
BOOST_REQUIRE_LE(arma::as_scalar(arma::abs(arma::mean(derivatives) -
selu.Lambda()*(selu.Alpha()-1))), 10e-5);
selu.Lambda() * (selu.Alpha() - 1))), 10e-4);
}
/**