[mlpack-git] master: We can't initialize a matrix with an uninitialized matrix. (9ea11b8)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Fri Nov 13 12:45:44 EST 2015


Repository : https://github.com/mlpack/mlpack

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/0f4e83dc9cc4dcdc315d2cceee32b23ebab114c2...7388de71d5398103ee3a0b32b4026902a40a67b3

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

commit 9ea11b8bf92d2a1dee168f2e8cf46a7f0aad3d0c
Author: marcus <marcus.edel at fu-berlin.de>
Date:   Tue Nov 10 21:40:57 2015 +0100

    We can't initialize a matrix with an uninitialized matrix.


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

9ea11b8bf92d2a1dee168f2e8cf46a7f0aad3d0c
 src/mlpack/methods/ann/optimizer/rmsprop.hpp          | 3 +--
 src/mlpack/methods/ann/optimizer/steepest_descent.hpp | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/mlpack/methods/ann/optimizer/rmsprop.hpp b/src/mlpack/methods/ann/optimizer/rmsprop.hpp
index 277b74a..7646143 100644
--- a/src/mlpack/methods/ann/optimizer/rmsprop.hpp
+++ b/src/mlpack/methods/ann/optimizer/rmsprop.hpp
@@ -54,8 +54,7 @@ class RMSPROP
       function(function),
       lr(lr),
       alpha(alpha),
-      eps(eps),
-      meanSquaredGad(function.Weights())
+      eps(eps)
   {
     // Nothing to do here.
   }
diff --git a/src/mlpack/methods/ann/optimizer/steepest_descent.hpp b/src/mlpack/methods/ann/optimizer/steepest_descent.hpp
index 44b18b7..3414dd6 100644
--- a/src/mlpack/methods/ann/optimizer/steepest_descent.hpp
+++ b/src/mlpack/methods/ann/optimizer/steepest_descent.hpp
@@ -38,8 +38,7 @@ class SteepestDescent
                   const double mom = 0) :
       function(function),
       lr(lr),
-      mom(mom),
-      momWeights(function.Weights())
+      mom(mom)
 
   {
     // Nothing to do here.



More information about the mlpack-git mailing list