[mlpack-git] master: Fix wrong conditional for printing warning. (e11fbbb)

gitdub at mlpack.org gitdub at mlpack.org
Wed Jul 13 16:59:54 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/59bc0b32630a3ad786706993f4d5e8b087f1c702...0d9a0e263a32b99d8dcf5d2723b3b92c67e669fc

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

commit e11fbbbbfd48360f72abde1ad442fe7e20d54899
Author: Ryan Curtin <ryan at ratml.org>
Date:   Wed Jul 13 16:59:54 2016 -0400

    Fix wrong conditional for printing warning.


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

e11fbbbbfd48360f72abde1ad442fe7e20d54899
 src/mlpack/methods/hmm/hmm_viterbi_main.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mlpack/methods/hmm/hmm_viterbi_main.cpp b/src/mlpack/methods/hmm/hmm_viterbi_main.cpp
index 4bb6a1c..be5be85 100644
--- a/src/mlpack/methods/hmm/hmm_viterbi_main.cpp
+++ b/src/mlpack/methods/hmm/hmm_viterbi_main.cpp
@@ -73,7 +73,7 @@ int main(int argc, char** argv)
   // Parse command line options.
   CLI::ParseCommandLine(argc, argv);
 
-  if (CLI::HasParam("output_file"))
+  if (!CLI::HasParam("output_file"))
     Log::Warn << "--output_file (-o) is not specified; no results will be "
         << "saved!" << endl;
 




More information about the mlpack-git mailing list