Fix style issues
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user