[mlpack-git] master: Minor style change. (22bbb89)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Sun Jan 11 11:32:39 EST 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/b584f3434762fdefb8002422752a7b37ca2fd354...22bbb89eae5ef8f08b61539865a0beeabe345b34
>---------------------------------------------------------------
commit 22bbb89eae5ef8f08b61539865a0beeabe345b34
Author: Marcus Edel <marcus.edel at fu-berlin.de>
Date: Sun Jan 11 17:32:33 2015 +0100
Minor style change.
>---------------------------------------------------------------
22bbb89eae5ef8f08b61539865a0beeabe345b34
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