[mlpack-git] mlpack-2.0.x: Fix wrong conditional for printing warning. (3645827)

gitdub at mlpack.org gitdub at mlpack.org
Wed Jul 20 15:32:50 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : mlpack-2.0.x
Link       : https://github.com/mlpack/mlpack/compare/e434bc4ac042534529a2a440a44d86935b4d7164...fc4195d27bb9e642356a384d1fa6fe10cbdf89a6

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

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

    Fix wrong conditional for printing warning.


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

3645827efbfeaa9d2e0ecb34533855e220cc9149
 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 43d5416..47085a4 100644
--- a/src/mlpack/methods/hmm/hmm_viterbi_main.cpp
+++ b/src/mlpack/methods/hmm/hmm_viterbi_main.cpp
@@ -80,7 +80,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