[mlpack-svn] r10527 - mlpack/trunk/src/mlpack/methods/kmeans

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Sat Dec 3 03:07:17 EST 2011


Author: rcurtin
Date: 2011-12-03 03:07:16 -0500 (Sat, 03 Dec 2011)
New Revision: 10527

Modified:
   mlpack/trunk/src/mlpack/methods/kmeans/kmeans_main.cpp
Log:
Fix sanity check to actually check things correctly.


Modified: mlpack/trunk/src/mlpack/methods/kmeans/kmeans_main.cpp
===================================================================
--- mlpack/trunk/src/mlpack/methods/kmeans/kmeans_main.cpp	2011-12-03 08:06:55 UTC (rev 10526)
+++ mlpack/trunk/src/mlpack/methods/kmeans/kmeans_main.cpp	2011-12-03 08:07:16 UTC (rev 10527)
@@ -59,7 +59,7 @@
   }
 
   double overclustering = CLI::GetParam<double>("overclustering");
-  if (overclustering < 1)
+  if (overclustering < 0)
   {
     Log::Fatal << "Invalid value for overclustering (" << overclustering <<
         ")! Must be greater than or equal to 1." << std::endl;




More information about the mlpack-svn mailing list