From a9f5622c8a14409111f2d71bf5c0f8aaa8ad4ae1 Mon Sep 17 00:00:00 2001 From: Ryan Curtin Date: Tue, 21 Jun 2016 17:31:13 -0700 Subject: [PATCH] Minor style changes. --- src/mlpack/methods/lsh/lsh_main.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mlpack/methods/lsh/lsh_main.cpp b/src/mlpack/methods/lsh/lsh_main.cpp index b436a157e0..c4d6ff66ca 100644 --- a/src/mlpack/methods/lsh/lsh_main.cpp +++ b/src/mlpack/methods/lsh/lsh_main.cpp @@ -191,20 +191,20 @@ int main(int argc, char *argv[]) Log::Info << "Neighbors computed." << endl; // Compute recall, if desired. - if (CLI::HasParam("t")) + if (CLI::HasParam("true_neighbors_file")) { - // read specified filename const string trueNeighborsFile = - CLI::GetParam("true_neighbors_file"); + CLI::GetParam("true_neighbors_file"); - // load the data + // Load the true neighbors. arma::Mat trueNeighbors; data::Load(trueNeighborsFile, trueNeighbors, true); Log::Info << "Loaded true neighbor indices from '" - << trueNeighborsFile << "'." << endl; + << trueNeighborsFile << "'." << endl; - // Compute Recall and log - double recallPercentage = 100 * allkann.ComputeRecall(neighbors, trueNeighbors); + // Compute recall and print it. + double recallPercentage = 100 * allkann.ComputeRecall(neighbors, + trueNeighbors); Log::Info << "Recall: " << recallPercentage << endl; }