[mlpack-git] master: As pointed out in the program info; the reference set will be used as both the reference and query set if no separate query set is specified. (5bc514c)

gitdub at mlpack.org gitdub at mlpack.org
Tue Apr 5 15:47:41 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/9f72e89ddad3347e1de59a164063ced735553cc4...5bc514c122d53590397fdfad42c7845d9ad91fa1

>---------------------------------------------------------------

commit 5bc514c122d53590397fdfad42c7845d9ad91fa1
Author: Marcus Edel <marcus.edel at fu-berlin.de>
Date:   Tue Apr 5 21:47:10 2016 +0200

    As pointed out in the program info; the reference set will be used as both the reference and query set if no separate query set is specified.


>---------------------------------------------------------------

5bc514c122d53590397fdfad42c7845d9ad91fa1
 src/mlpack/methods/lsh/lsh_main.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/mlpack/methods/lsh/lsh_main.cpp b/src/mlpack/methods/lsh/lsh_main.cpp
index 0d12a11..2894411 100644
--- a/src/mlpack/methods/lsh/lsh_main.cpp
+++ b/src/mlpack/methods/lsh/lsh_main.cpp
@@ -112,10 +112,11 @@ int main(int argc, char *argv[])
   }
 
   if ((CLI::HasParam("query_file") && !CLI::HasParam("k")) ||
-      (!CLI::HasParam("query_file") && CLI::HasParam("k")))
+      (!CLI::HasParam("query_file") && !CLI::HasParam("reference_file") &&
+       CLI::HasParam("k")))
   {
-    Log::Fatal << "Both --query_file and --k must be specified if search is to "
-        << "be done!" << endl;
+    Log::Fatal << "Both --query_file or --reference_file and --k must be "
+        << "specified if search is to be done!" << endl;
   }
 
   if (CLI::HasParam("input_model_file") && CLI::HasParam("k") &&




More information about the mlpack-git mailing list