[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/04fe0d5198b6f138c1d1eff23b7c7f7100db7ca9...5d1723d3305e0a97cd9a3b13561680a7eaf8676b

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

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