[mlpack-svn] r13361 - mlpack/trunk/src/mlpack/methods/nmf

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Aug 7 15:52:08 EDT 2012


Author: rcurtin
Date: 2012-08-07 15:52:08 -0400 (Tue, 07 Aug 2012)
New Revision: 13361

Modified:
   mlpack/trunk/src/mlpack/methods/nmf/random_acol_init.hpp
Log:
Heh... a template parameter is not an lvalue.  So just warn the user and then
chug happily away...


Modified: mlpack/trunk/src/mlpack/methods/nmf/random_acol_init.hpp
===================================================================
--- mlpack/trunk/src/mlpack/methods/nmf/random_acol_init.hpp	2012-08-07 19:25:58 UTC (rev 13360)
+++ mlpack/trunk/src/mlpack/methods/nmf/random_acol_init.hpp	2012-08-07 19:52:08 UTC (rev 13361)
@@ -42,9 +42,7 @@
     if (p > m)
     {
       Log::Warn << "Number of random columns is more than the number of columns"
-          << "available in the V matrix; setting to the number of random "
-          << "columns to " << m << "." << std::endl;
-      p = m;
+          << "available in the V matrix; weird results may ensue!" << std::endl;
     }
 
     W.zeros(n, m);




More information about the mlpack-svn mailing list