Refactor the CLI. (#5574)

* Enable parameter validation.
* Enable JSON.
* Catch `dmlc::Error`.
* Show help message.
This commit is contained in:
Jiaming Yuan
2020-04-26 10:56:33 +08:00
committed by GitHub
parent 7d93932423
commit c90457f489
8 changed files with 432 additions and 218 deletions

View File

@@ -30,11 +30,11 @@ General Parameters
is displayed as warning message. If there's unexpected behaviour, please try to
increase value of verbosity.
* ``validate_parameters`` [default to false, except for Python and R interface]
* ``validate_parameters`` [default to false, except for Python, R and CLI interface]
- When set to True, XGBoost will perform validation of input parameters to check whether
a parameter is used or not. The feature is still experimental. It's expected to have
some false positives, especially when used with Scikit-Learn interface.
some false positives.
* ``nthread`` [default to maximum number of threads available if not set]