[mlpack] 16/40: Update GetParam<>(parameterName) per marcos

Barak A. Pearlmutter barak+git at pearlmutter.net
Mon Feb 15 19:34:23 UTC 2016


This is an automated email from the git hooks/post-receive script.

bap pushed a commit to branch master
in repository mlpack.

commit 78fac4fc186665dba0cf37df96be7bcbdd2cbdeb
Author: Andy Fang <AndyFang.DZ at gmail.com>
Date:   Thu Jan 21 22:09:44 2016 -0500

    Update GetParam<>(parameterName) per marcos
    
    ```
    PARAM_STRING("input_model_file", "File containing existing model (parameters).",
        "m", "");
    PARAM_STRING("output_model_file", "File to save trained logistic regression "
        "model to.", "M", "");
    ```
    v.s.
    ```
    const string inputModelFile = CLI::GetParam<string>("input_model");
    const string outputModelFile = CLI::GetParam<string>("output_model");
    ```
---
 src/mlpack/methods/logistic_regression/logistic_regression_main.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mlpack/methods/logistic_regression/logistic_regression_main.cpp b/src/mlpack/methods/logistic_regression/logistic_regression_main.cpp
index fdccc5d..fde567a 100644
--- a/src/mlpack/methods/logistic_regression/logistic_regression_main.cpp
+++ b/src/mlpack/methods/logistic_regression/logistic_regression_main.cpp
@@ -108,8 +108,8 @@ int main(int argc, char** argv)
   const double tolerance = CLI::GetParam<double>("tolerance");
   const double stepSize = CLI::GetParam<double>("step_size");
   const size_t maxIterations = (size_t) CLI::GetParam<int>("max_iterations");
-  const string inputModelFile = CLI::GetParam<string>("input_model");
-  const string outputModelFile = CLI::GetParam<string>("output_model");
+  const string inputModelFile = CLI::GetParam<string>("input_model_file");
+  const string outputModelFile = CLI::GetParam<string>("output_model_file");
   const string testFile = CLI::GetParam<string>("test_file");
   const string outputFile = CLI::GetParam<string>("output_file");
   const double decisionBoundary = CLI::GetParam<double>("decision_boundary");

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git



More information about the debian-science-commits mailing list