[mlpack-git] mlpack-2.x: Fix duplicate options. (c419a4e)
gitdub at mlpack.org
gitdub at mlpack.org
Thu Jun 16 10:25:48 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : mlpack-2.x
Link : https://github.com/mlpack/mlpack/compare/909d69e4bff15bb4db0b3d05739f6963123e346a...92a7f9a1849cd89c0861b3e4b08cf32f33936daa
>---------------------------------------------------------------
commit c419a4e01ff2d11f2b7d5037cee267ec97249749
Author: Ryan Curtin <ryan at ratml.org>
Date: Thu Jun 16 10:25:48 2016 -0400
Fix duplicate options.
>---------------------------------------------------------------
c419a4e01ff2d11f2b7d5037cee267ec97249749
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 41784c2..1c463e7 100644
--- a/src/mlpack/methods/cf/cf_main.cpp
+++ b/src/mlpack/methods/cf/cf_main.cpp
@@ -100,7 +100,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 9370634..c968776 100644
--- a/src/mlpack/methods/pca/pca_main.cpp
+++ b/src/mlpack/methods/pca/pca_main.cpp
@@ -37,10 +37,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");
@@ -79,8 +80,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 081a8c3..40c05cf 100644
--- a/src/mlpack/methods/rann/allkrann_main.cpp
+++ b/src/mlpack/methods/rann/allkrann_main.cpp
@@ -88,7 +88,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