[mlpack] 13/35: Warn when the user does not specify a file to test but asks for output.
Barak A. Pearlmutter
barak+git at pearlmutter.net
Thu Sep 15 23:29:40 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 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.
---
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"))
{
--
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