[mlpack-git] master: Fix duplicate options. (e8d8264)

gitdub at mlpack.org gitdub at mlpack.org
Thu Jun 16 10:57:25 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/a8b5be966f2b874d31c9e2a65583a3a874ff36d7...a0b31abe5ff69117645c664dbeac1476dd5e48f7

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

commit e8d8264668b613e46040728be68f2d57f2471d62
Author: Ryan Curtin <ryan at ratml.org>
Date:   Thu Jun 16 10:25:48 2016 -0400

    Fix duplicate options.


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

e8d8264668b613e46040728be68f2d57f2471d62
 src/mlpack/methods/cf/cf_main.cpp         | 2 +-
 src/mlpack/methods/pca/pca_main.cpp       | 7 ++++---
 src/mlpack/methods/rann/allkrann_main.cpp | 2 +-
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/mlpack/methods/cf/cf_main.cpp b/src/mlpack/methods/cf/cf_main.cpp
index bc46876..63c3dad 100644
--- a/src/mlpack/methods/cf/cf_main.cpp
+++ b/src/mlpack/methods/cf/cf_main.cpp
@@ -85,7 +85,7 @@ PARAM_FLAG("all_user_recommendations", "Generate recommendations for all "
     "users.", "A");
 PARAM_STRING("output_file","File to save output recommendations to.", "o", "");
 PARAM_INT("recommendations", "Number of recommendations to generate for each "
-    "query user.", "n", 5);
+    "query user.", "c", 5);
 
 PARAM_INT("seed", "Set the random seed (0 uses std::time(NULL)).", "s", 0);
 
diff --git a/src/mlpack/methods/pca/pca_main.cpp b/src/mlpack/methods/pca/pca_main.cpp
index 6277c5b..8bbbedf 100644
--- a/src/mlpack/methods/pca/pca_main.cpp
+++ b/src/mlpack/methods/pca/pca_main.cpp
@@ -22,10 +22,11 @@ PROGRAM_INFO("Principal Components Analysis", "This program performs principal "
 // Parameters for program.
 PARAM_STRING_REQ("input_file", "Input dataset to perform PCA on.", "i");
 PARAM_STRING_REQ("output_file", "File to save modified dataset to.", "o");
+
 PARAM_INT("new_dimensionality", "Desired dimensionality of output dataset.  If "
     "0, no dimensionality reduction is performed.", "d", 0);
 PARAM_DOUBLE("var_to_retain", "Amount of variance to retain; should be between "
-    "0 and 1.  If 1, all variance is retained.  Overrides -d.", "V", 0);
+    "0 and 1.  If 1, all variance is retained.  Overrides -d.", "r", 0);
 
 PARAM_FLAG("scale", "If set, the data will be scaled before running PCA, such "
     "that the variance of each feature is 1.", "s");
@@ -64,8 +65,8 @@ int main(int argc, char** argv)
   if (CLI::GetParam<double>("var_to_retain") != 0)
   {
     if (CLI::GetParam<int>("new_dimensionality") != 0)
-      Log::Warn << "New dimensionality (-d) ignored because -V was specified."
-          << endl;
+      Log::Warn << "New dimensionality (-d) ignored because --var_to_retain was"
+          << " specified." << endl;
 
     varRetained = p.Apply(dataset, CLI::GetParam<double>("var_to_retain"));
   }
diff --git a/src/mlpack/methods/rann/allkrann_main.cpp b/src/mlpack/methods/rann/allkrann_main.cpp
index ce6f9f1..2eb2b8b 100644
--- a/src/mlpack/methods/rann/allkrann_main.cpp
+++ b/src/mlpack/methods/rann/allkrann_main.cpp
@@ -73,7 +73,7 @@ PARAM_INT("seed", "Random seed (if 0, std::time(NULL) is used).", "s", 0);
 
 // Search options.
 PARAM_DOUBLE("tau", "The allowed rank-error in terms of the percentile of "
-             "the data.", "t", 5);
+             "the data.", "T", 5);
 PARAM_DOUBLE("alpha", "The desired success probability.", "a", 0.95);
 PARAM_FLAG("naive", "If true, sampling will be done without using a tree.",
            "N");




More information about the mlpack-git mailing list