[mlpack-svn] r16042 - mlpack/trunk/src/mlpack/methods/sparse_coding
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Nov 18 15:24:35 EST 2013
Author: rcurtin
Date: Mon Nov 18 15:24:34 2013
New Revision: 16042
Log:
Don't print "Iteration X of 0."; just "Iteration X".
Modified:
mlpack/trunk/src/mlpack/methods/sparse_coding/sparse_coding_impl.hpp
Modified: mlpack/trunk/src/mlpack/methods/sparse_coding/sparse_coding_impl.hpp
==============================================================================
--- mlpack/trunk/src/mlpack/methods/sparse_coding/sparse_coding_impl.hpp (original)
+++ mlpack/trunk/src/mlpack/methods/sparse_coding/sparse_coding_impl.hpp Mon Nov 18 15:24:34 2013
@@ -51,8 +51,12 @@
for (size_t t = 1; t != maxIterations; ++t)
{
- Log::Info << "Iteration " << t << " of " << maxIterations << "."
- << std::endl;
+ // Print current iteration, and maximum number of iterations (if it isn't
+ // 0).
+ Log::Info << "Iteration " << t;
+ if (maxIterations != 0)
+ Log::Info << " of " << maxIterations;
+ Log::Info << "." << std::endl;
// First step: optimize the dictionary.
Log::Info << "Performing dictionary step... " << std::endl;
More information about the mlpack-svn
mailing list