[mlpack-git] master, mlpack-1.0.x: Initialize reverseStepCount to 0 to avoid memory issues. (b06ec72)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 21:54:29 EST 2015


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

On branches: master,mlpack-1.0.x
Link       : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40

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

commit b06ec72baf03fbc2f9f46596ed24fdfaa0d19368
Author: Ryan Curtin <ryan at ratml.org>
Date:   Fri Jul 25 18:51:19 2014 +0000

    Initialize reverseStepCount to 0 to avoid memory issues.


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

b06ec72baf03fbc2f9f46596ed24fdfaa0d19368
 .../methods/amf/termination_policies/simple_tolerance_termination.hpp    | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mlpack/methods/amf/termination_policies/simple_tolerance_termination.hpp b/src/mlpack/methods/amf/termination_policies/simple_tolerance_termination.hpp
index 8976c14..15c5369 100644
--- a/src/mlpack/methods/amf/termination_policies/simple_tolerance_termination.hpp
+++ b/src/mlpack/methods/amf/termination_policies/simple_tolerance_termination.hpp
@@ -26,6 +26,7 @@ class SimpleToleranceTermination
     residueOld = DBL_MAX;
     iteration = 1;
     residue = DBL_MIN;
+    reverseStepCount = 0;
 
     this->V = &V;
   }



More information about the mlpack-git mailing list