[mlpack-git] master: Be more clear with the warning. (c3b6a9b)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Thu Nov 5 09:53:58 EST 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/e09d6a4869ed02fbf3d9d9b22ab1bf46a116cfdd...c3b6a9b6cf3907e737f19b544f339690f2098ace
>---------------------------------------------------------------
commit c3b6a9b6cf3907e737f19b544f339690f2098ace
Author: ryan <ryan at ratml.org>
Date: Thu Nov 5 09:53:26 2015 -0500
Be more clear with the warning.
>---------------------------------------------------------------
c3b6a9b6cf3907e737f19b544f339690f2098ace
src/mlpack/methods/neighbor_search/allkfn_main.cpp | 3 ++-
src/mlpack/methods/neighbor_search/allknn_main.cpp | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/mlpack/methods/neighbor_search/allkfn_main.cpp b/src/mlpack/methods/neighbor_search/allkfn_main.cpp
index 5bf2982..3abbf01 100644
--- a/src/mlpack/methods/neighbor_search/allkfn_main.cpp
+++ b/src/mlpack/methods/neighbor_search/allkfn_main.cpp
@@ -128,7 +128,8 @@ int main(int argc, char *argv[])
!CLI::HasParam("k"))
Log::Warn << "An output file for furthest neighbor search is given ("
<< "--neighbors_file or --distances_file), but furthest neighbor search"
- << " is not being performed because k (--k) is not specified!" << endl;
+ << " is not being performed because k (--k) is not specified! No "
+ << "results will be saved." << endl;
// Sanity check on leaf size.
const int lsInt = CLI::GetParam<int>("leaf_size");
diff --git a/src/mlpack/methods/neighbor_search/allknn_main.cpp b/src/mlpack/methods/neighbor_search/allknn_main.cpp
index fbe9bad..f016b75 100644
--- a/src/mlpack/methods/neighbor_search/allknn_main.cpp
+++ b/src/mlpack/methods/neighbor_search/allknn_main.cpp
@@ -131,7 +131,8 @@ int main(int argc, char *argv[])
!CLI::HasParam("k"))
Log::Warn << "An output file for nearest neighbor search is given ("
<< "--neighbors_file or --distances_file), but nearest neighbor search "
- << "is not being performed because k (--k) is not specified!" << endl;
+ << "is not being performed because k (--k) is not specified! No "
+ << "results will be saved." << endl;
// Sanity check on leaf size.
const int lsInt = CLI::GetParam<int>("leaf_size");
More information about the mlpack-git
mailing list