[mlpack-svn] r12711 - mlpack/trunk/src/mlpack/methods/neighbor_search
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Thu May 17 13:26:11 EDT 2012
Author: rcurtin
Date: 2012-05-17 13:26:10 -0400 (Thu, 17 May 2012)
New Revision: 12711
Modified:
mlpack/trunk/src/mlpack/methods/neighbor_search/allkfn_main.cpp
mlpack/trunk/src/mlpack/methods/neighbor_search/allknn_main.cpp
Log:
Clarify error message; k can be equal to the number of points.
Modified: mlpack/trunk/src/mlpack/methods/neighbor_search/allkfn_main.cpp
===================================================================
--- mlpack/trunk/src/mlpack/methods/neighbor_search/allkfn_main.cpp 2012-05-17 16:55:58 UTC (rev 12710)
+++ mlpack/trunk/src/mlpack/methods/neighbor_search/allkfn_main.cpp 2012-05-17 17:26:10 UTC (rev 12711)
@@ -82,7 +82,7 @@
if ((k <= 0) || (k >= referenceData.n_cols))
{
Log::Fatal << "Invalid k: " << k << "; must be greater than 0 and less ";
- Log::Fatal << "than the number of reference points (";
+ Log::Fatal << "than or equal to the number of reference points (";
Log::Fatal << referenceData.n_cols << ")." << endl;
}
Modified: mlpack/trunk/src/mlpack/methods/neighbor_search/allknn_main.cpp
===================================================================
--- mlpack/trunk/src/mlpack/methods/neighbor_search/allknn_main.cpp 2012-05-17 16:55:58 UTC (rev 12710)
+++ mlpack/trunk/src/mlpack/methods/neighbor_search/allknn_main.cpp 2012-05-17 17:26:10 UTC (rev 12711)
@@ -86,7 +86,7 @@
if ((k <= 0) || (k >= referenceData.n_cols))
{
Log::Fatal << "Invalid k: " << k << "; must be greater than 0 and less ";
- Log::Fatal << "than the number of reference points (";
+ Log::Fatal << "than or equal to the number of reference points (";
Log::Fatal << referenceData.n_cols << ")." << endl;
}
More information about the mlpack-svn
mailing list