[mlpack] 13/40: Fix confusion in error message

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 01cd38c88528cbe05eee7c1ae8dce87e44261c72
Author: Andy Fang <AndyFang.DZ at gmail.com>
Date:   Tue Jan 19 13:22:15 2016 -0500

    Fix confusion in error message
    
    The error message was "missing output_model",
    while the variable used for detecting it was "outputFile",
    which refers to the testing output, rather than the model output.
---
 src/mlpack/methods/logistic_regression/logistic_regression_main.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mlpack/methods/logistic_regression/logistic_regression_main.cpp b/src/mlpack/methods/logistic_regression/logistic_regression_main.cpp
index 6938171..f57d6b9 100644
--- a/src/mlpack/methods/logistic_regression/logistic_regression_main.cpp
+++ b/src/mlpack/methods/logistic_regression/logistic_regression_main.cpp
@@ -121,7 +121,7 @@ int main(int argc, char** argv)
 
   // If no output file is given, the user should know that the model will not be
   // saved, but only if a model is being trained.
-  if (outputFile.empty() && !trainingFile.empty())
+  if (outputModelFile.empty() && !trainingFile.empty())
     Log::Warn << "--output_model not given; trained model will not be saved."
         << endl;
 

-- 
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