[mlpack] 220/324: Fix an uninitialized value.

Barak A. Pearlmutter barak+git at cs.nuim.ie
Sun Aug 17 08:22:12 UTC 2014


This is an automated email from the git hooks/post-receive script.

bap pushed a commit to branch svn-trunk
in repository mlpack.

commit eec4ef424ba96bd702a6f0a14e94e3fd30777d48
Author: rcurtin <rcurtin at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date:   Fri Jul 25 20:01:02 2014 +0000

    Fix an uninitialized value.
    
    
    git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@16862 9d5b8971-822b-0410-80eb-d18c1038ef23
---
 .../methods/amf/termination_policies/validation_RMSE_termination.hpp  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mlpack/methods/amf/termination_policies/validation_RMSE_termination.hpp b/src/mlpack/methods/amf/termination_policies/validation_RMSE_termination.hpp
index a437ce5..fb4911a 100644
--- a/src/mlpack/methods/amf/termination_policies/validation_RMSE_termination.hpp
+++ b/src/mlpack/methods/amf/termination_policies/validation_RMSE_termination.hpp
@@ -44,14 +44,14 @@ class ValidationRMSETermination
     }
   }
 
-  void Initialize(const MatType& V)
+  void Initialize(const MatType& /* V */)
   {
-    (void)V;
     iteration = 1;
 
     rmse = DBL_MAX;
     rmseOld = DBL_MAX;
     reverseStepCount = 0;
+    isCopy = false;
   }
 
   bool IsConverged(arma::mat& W, arma::mat& H)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git



More information about the debian-science-commits mailing list