[mlpack-git] master: Minor style change. (53fabe2)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 22:11:38 EST 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40
>---------------------------------------------------------------
commit 53fabe2a24d26b173591fc8412709124205eaa82
Author: Marcus Edel <marcus.edel at fu-berlin.de>
Date: Sun Jan 11 17:32:33 2015 +0100
Minor style change.
>---------------------------------------------------------------
53fabe2a24d26b173591fc8412709124205eaa82
src/mlpack/methods/ann/activation_functions/logistic_function.hpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/mlpack/methods/ann/activation_functions/logistic_function.hpp b/src/mlpack/methods/ann/activation_functions/logistic_function.hpp
index a728a05..71de460 100644
--- a/src/mlpack/methods/ann/activation_functions/logistic_function.hpp
+++ b/src/mlpack/methods/ann/activation_functions/logistic_function.hpp
@@ -35,9 +35,8 @@ class LogisticFunction
{
if(x < arma::Math<eT>::log_max())
{
- if (x > -arma::Math<eT>::log_max()) {
+ if (x > -arma::Math<eT>::log_max())
return 1.0 / (1.0 + std::exp(-x));
- }
return 0.0;
}
More information about the mlpack-git
mailing list