[mlpack-git] master: Deprecated arma function replaced by new arma constant (4fae385)

gitdub at mlpack.org gitdub at mlpack.org
Wed May 25 12:44:11 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/1f562a1aba7ae55475afcc95659511c2b7f694e5...5b8fdce471328f722fcd8c0f22a6d995ce22c98b

>---------------------------------------------------------------

commit 4fae38575502b90b80abddf21a3e4d46a4b4c9fc
Author: dasayan05 <dasayan05 at hotmail.com>
Date:   Wed May 25 22:14:11 2016 +0530

    Deprecated arma function replaced by new arma constant


>---------------------------------------------------------------

4fae38575502b90b80abddf21a3e4d46a4b4c9fc
 src/mlpack/methods/ann/activation_functions/logistic_function.hpp | 4 ++--
 1 file changed, 2 insertions(+), 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 5f19797..626d9ea 100644
--- a/src/mlpack/methods/ann/activation_functions/logistic_function.hpp
+++ b/src/mlpack/methods/ann/activation_functions/logistic_function.hpp
@@ -33,9 +33,9 @@ class LogisticFunction
   template<typename eT>
   static double fn(const eT x)
   {
-    if(x < arma::Math<eT>::log_max())
+    if(x < arma::Datum<eT>::log_max)
     {
-      if (x > -arma::Math<eT>::log_max())
+      if (x > -arma::Datum<eT>::log_max)
         return 1.0 /  (1.0 + std::exp(-x));
 
       return 0.0;




More information about the mlpack-git mailing list