[mlpack-git] mlpack-2.0.x: Warn when the user does not specify a file to test but asks for output. (6f3067f)
gitdub at mlpack.org
gitdub at mlpack.org
Wed Jul 20 15:31:22 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : mlpack-2.0.x
Link : https://github.com/mlpack/mlpack/compare/e434bc4ac042534529a2a440a44d86935b4d7164...fc4195d27bb9e642356a384d1fa6fe10cbdf89a6
>---------------------------------------------------------------
commit 6f3067f472db1b6b5244f3242ab6406a20583fe1
Author: Ryan Curtin <ryan at ratml.org>
Date: Wed Jul 13 11:16:35 2016 -0400
Warn when the user does not specify a file to test but asks for output.
>---------------------------------------------------------------
6f3067f472db1b6b5244f3242ab6406a20583fe1
src/mlpack/methods/adaboost/adaboost_main.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/mlpack/methods/adaboost/adaboost_main.cpp b/src/mlpack/methods/adaboost/adaboost_main.cpp
index 3e6ae67..430aa0f 100644
--- a/src/mlpack/methods/adaboost/adaboost_main.cpp
+++ b/src/mlpack/methods/adaboost/adaboost_main.cpp
@@ -281,6 +281,12 @@ int main(int argc, char *argv[])
<< "no results will be saved." << endl;
}
+ if (CLI::HasParam("output_file") && !CLI::HasParam("test_file"))
+ {
+ Log::Warn << "--output_file ignored because --test_file is not specified."
+ << endl;
+ }
+
AdaBoostModel m;
if (CLI::HasParam("training_file"))
{
More information about the mlpack-git
mailing list