[mlpack-svn] r13366 - mlpack/trunk/src/mlpack/methods/neighbor_search
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Aug 7 21:55:24 EDT 2012
Author: rcurtin
Date: 2012-08-07 21:55:23 -0400 (Tue, 07 Aug 2012)
New Revision: 13366
Modified:
mlpack/trunk/src/mlpack/methods/neighbor_search/allknn_main.cpp
Log:
Get the conditional right. Only map things back like that if there was a query
file and we were in single mode. Not just 'singleMode' is good enough.
Modified: mlpack/trunk/src/mlpack/methods/neighbor_search/allknn_main.cpp
===================================================================
--- mlpack/trunk/src/mlpack/methods/neighbor_search/allknn_main.cpp 2012-08-07 22:41:05 UTC (rev 13365)
+++ mlpack/trunk/src/mlpack/methods/neighbor_search/allknn_main.cpp 2012-08-08 01:55:23 UTC (rev 13366)
@@ -202,7 +202,7 @@
}
}
}
- else if (singleMode)
+ else if ((CLI::GetParam<string>("query_file") != "") && singleMode)
{
// No remapping of queries is necessary. So distances are the same.
distances = sqrt(distancesOut);
More information about the mlpack-svn
mailing list