[mlpack-svn] r12411 - mlpack/trunk/src/mlpack/methods/sparse_coding

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Apr 16 16:25:17 EDT 2012


Author: rcurtin
Date: 2012-04-16 16:25:16 -0400 (Mon, 16 Apr 2012)
New Revision: 12411

Modified:
   mlpack/trunk/src/mlpack/methods/sparse_coding/sparse_coding.cpp
Log:
Fix longer-than-80-character lines.


Modified: mlpack/trunk/src/mlpack/methods/sparse_coding/sparse_coding.cpp
===================================================================
--- mlpack/trunk/src/mlpack/methods/sparse_coding/sparse_coding.cpp	2012-04-16 19:57:07 UTC (rev 12410)
+++ mlpack/trunk/src/mlpack/methods/sparse_coding/sparse_coding.cpp	2012-04-16 20:25:16 UTC (rev 12411)
@@ -67,8 +67,8 @@
   uvec adjacencies = find(codes);
 
   Log::Info << "  Sparsity level: "
-      << 100.0 * ((double) (adjacencies.n_elem)) / ((double) (atoms * data.n_cols))
-      << "%" << endl;
+      << 100.0 * ((double) (adjacencies.n_elem)) / ((double)
+      (atoms * data.n_cols)) << "%" << endl;
   Log::Info << "  Objective value: " << Objective() << "." << endl;
 
   for (size_t t = 1; t != maxIterations; ++t)
@@ -302,7 +302,8 @@
   }
   else
   {
-    mat dictionaryActiveEstimate = trans(solve(codesZT + diagmat(dualVars), codesXT));
+    mat dictionaryActiveEstimate = trans(solve(codesZT + diagmat(dualVars),
+        codesXT));
     dictionaryEstimate = zeros(data.n_rows, atoms);
 
     for (size_t i = 0; i < nActiveAtoms; ++i)




More information about the mlpack-svn mailing list