[mlpack-git] master: Print iteration and residue for tolerance termination. (6d2e43d)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Fri Jun 26 17:18:45 EDT 2015


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

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/f9a6cd53619e4024a8e052b9ddb296af3f7d7dc7...6d2e43d610eb0dac5c3083d78d097c8103a5f207

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

commit 6d2e43d610eb0dac5c3083d78d097c8103a5f207
Author: Ryan Curtin <ryan at ratml.org>
Date:   Fri Jun 26 17:18:31 2015 -0400

    Print iteration and residue for tolerance termination.


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

6d2e43d610eb0dac5c3083d78d097c8103a5f207
 .../methods/amf/termination_policies/simple_tolerance_termination.hpp   | 2 ++
 1 file changed, 2 insertions(+)

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 d847a62..f31c0b1 100644
--- a/src/mlpack/methods/amf/termination_policies/simple_tolerance_termination.hpp
+++ b/src/mlpack/methods/amf/termination_policies/simple_tolerance_termination.hpp
@@ -92,6 +92,8 @@ class SimpleToleranceTermination
 
     // increment iteration count
     iteration++;
+    Log::Info << "Iteration " << iteration << "; residue "
+        << ((residueOld - residue) / residueOld) << ".\n";
 
     // if residue tolerance is not satisfied
     if ((residueOld - residue) / residueOld < tolerance && iteration > 4)



More information about the mlpack-git mailing list