"...git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "ddda85b06061fe11ce42e1f636c101b651a7ef19"
Commit 43005194 authored by Nikita Titov's avatar Nikita Titov Committed by Guolin Ke
Browse files

[docs] clarified CLI-only params in docs (#1436)

parent 68e212ae
...@@ -110,12 +110,16 @@ Core Parameters ...@@ -110,12 +110,16 @@ Core Parameters
- path of training data, LightGBM will train from this data - path of training data, LightGBM will train from this data
- **Note**: can be used only in CLI version
- ``valid``, default = ``""``, type = string, aliases: ``test``, ``valid_data``, ``valid_data_file``, ``test_data``, ``valid_filenames`` - ``valid``, default = ``""``, type = string, aliases: ``test``, ``valid_data``, ``valid_data_file``, ``test_data``, ``valid_filenames``
- path(s) of validation/test data, LightGBM will output metrics for these data - path(s) of validation/test data, LightGBM will output metrics for these data
- support multiple validation data, separated by ``,`` - support multiple validation data, separated by ``,``
- **Note**: can be used only in CLI version
- ``num_iterations``, default = ``100``, type = int, aliases: ``num_iteration``, ``num_tree``, ``num_trees``, ``num_round``, ``num_rounds``, ``num_boost_round``, ``n_estimators``, constraints: ``num_iterations >= 0`` - ``num_iterations``, default = ``100``, type = int, aliases: ``num_iteration``, ``num_tree``, ``num_trees``, ``num_round``, ``num_rounds``, ``num_boost_round``, ``n_estimators``, constraints: ``num_iterations >= 0``
- number of boosting iterations - number of boosting iterations
...@@ -398,12 +402,16 @@ IO Parameters ...@@ -398,12 +402,16 @@ IO Parameters
- filename of output model in training - filename of output model in training
- **Note**: can be used only in CLI version
- ``snapshot_freq``, default = ``-1``, type = int - ``snapshot_freq``, default = ``-1``, type = int
- frequency of saving model file snapshot - frequency of saving model file snapshot
- set this to positive value to enable this function. For example, the model file will be snapshotted at each iteration if ``snapshot_freq=1`` - set this to positive value to enable this function. For example, the model file will be snapshotted at each iteration if ``snapshot_freq=1``
- **Note**: can be used only in CLI version
- ``input_model``, default = ``""``, type = string, aliases: ``model_input``, ``model_in`` - ``input_model``, default = ``""``, type = string, aliases: ``model_input``, ``model_in``
- filename of input model - filename of input model
...@@ -418,20 +426,26 @@ IO Parameters ...@@ -418,20 +426,26 @@ IO Parameters
- filename of prediction result in ``prediction`` task - filename of prediction result in ``prediction`` task
- **Note**: can be used only in CLI version
- ``initscore_filename``, default = ``""``, type = string, aliases: ``init_score_filename``, ``init_score_file``, ``init_score``, ``input_init_score`` - ``initscore_filename``, default = ``""``, type = string, aliases: ``init_score_filename``, ``init_score_file``, ``init_score``, ``input_init_score``
- path of file with training initial score - path of file with training initial scores
- if ``""``, will use ``train_data_file`` + ``.init`` (if exists) - if ``""``, will use ``train_data_file`` + ``.init`` (if exists)
- **Note**: can be used only in CLI version
- ``valid_data_initscores``, default = ``""``, type = string, aliases: ``valid_data_init_scores``, ``valid_init_score_file``, ``valid_init_score`` - ``valid_data_initscores``, default = ``""``, type = string, aliases: ``valid_data_init_scores``, ``valid_init_score_file``, ``valid_init_score``
- path(s) of file(s) with validation initial score(s) - path(s) of file(s) with validation initial scores
- if ``""``, will use ``valid_data_file`` + ``.init`` (if exists) - if ``""``, will use ``valid_data_file`` + ``.init`` (if exists)
- separate by ``,`` for multi-validation data - separate by ``,`` for multi-validation data
- **Note**: can be used only in CLI version
- ``pre_partition``, default = ``false``, type = bool, aliases: ``is_pre_partition`` - ``pre_partition``, default = ``false``, type = bool, aliases: ``is_pre_partition``
- used for parallel learning (excluding the ``feature_parallel`` mode) - used for parallel learning (excluding the ``feature_parallel`` mode)
...@@ -604,12 +618,16 @@ IO Parameters ...@@ -604,12 +618,16 @@ IO Parameters
- if ``convert_model_language`` is set and ``task=train``, the model will be also converted - if ``convert_model_language`` is set and ``task=train``, the model will be also converted
- **Note**: can be used only in CLI version
- ``convert_model``, default = ``gbdt_prediction.cpp``, type = string, aliases: ``convert_model_file`` - ``convert_model``, default = ``gbdt_prediction.cpp``, type = string, aliases: ``convert_model_file``
- used only in ``convert_model`` task - used only in ``convert_model`` task
- output filename of converted model - output filename of converted model
- **Note**: can be used only in CLI version
Objective Parameters Objective Parameters
-------------------- --------------------
......
...@@ -137,12 +137,14 @@ public: ...@@ -137,12 +137,14 @@ public:
// alias = train, train_data, data_filename // alias = train, train_data, data_filename
// desc = path of training data, LightGBM will train from this data // desc = path of training data, LightGBM will train from this data
// desc = **Note**: can be used only in CLI version
std::string data = ""; std::string data = "";
// alias = test, valid_data, valid_data_file, test_data, valid_filenames // alias = test, valid_data, valid_data_file, test_data, valid_filenames
// default = "" // default = ""
// desc = path(s) of validation/test data, LightGBM will output metrics for these data // desc = path(s) of validation/test data, LightGBM will output metrics for these data
// desc = support multiple validation data, separated by ``,`` // desc = support multiple validation data, separated by ``,``
// desc = **Note**: can be used only in CLI version
std::vector<std::string> valid; std::vector<std::string> valid;
// alias = num_iteration, num_tree, num_trees, num_round, num_rounds, num_boost_round, n_estimators // alias = num_iteration, num_tree, num_trees, num_round, num_rounds, num_boost_round, n_estimators
...@@ -395,10 +397,12 @@ public: ...@@ -395,10 +397,12 @@ public:
// alias = model_output, model_out // alias = model_output, model_out
// desc = filename of output model in training // desc = filename of output model in training
// desc = **Note**: can be used only in CLI version
std::string output_model = "LightGBM_model.txt"; std::string output_model = "LightGBM_model.txt";
// desc = frequency of saving model file snapshot // desc = frequency of saving model file snapshot
// desc = set this to positive value to enable this function. For example, the model file will be snapshotted at each iteration if ``snapshot_freq=1`` // desc = set this to positive value to enable this function. For example, the model file will be snapshotted at each iteration if ``snapshot_freq=1``
// desc = **Note**: can be used only in CLI version
int snapshot_freq = -1; int snapshot_freq = -1;
// alias = model_input, model_in // alias = model_input, model_in
...@@ -410,18 +414,21 @@ public: ...@@ -410,18 +414,21 @@ public:
// alias = predict_result, prediction_result // alias = predict_result, prediction_result
// desc = filename of prediction result in ``prediction`` task // desc = filename of prediction result in ``prediction`` task
// desc = **Note**: can be used only in CLI version
std::string output_result = "LightGBM_predict_result.txt"; std::string output_result = "LightGBM_predict_result.txt";
// alias = init_score_filename, init_score_file, init_score, input_init_score // alias = init_score_filename, init_score_file, init_score, input_init_score
// desc = path of file with training initial score // desc = path of file with training initial scores
// desc = if ``""``, will use ``train_data_file`` + ``.init`` (if exists) // desc = if ``""``, will use ``train_data_file`` + ``.init`` (if exists)
// desc = **Note**: can be used only in CLI version
std::string initscore_filename = ""; std::string initscore_filename = "";
// alias = valid_data_init_scores, valid_init_score_file, valid_init_score // alias = valid_data_init_scores, valid_init_score_file, valid_init_score
// default = "" // default = ""
// desc = path(s) of file(s) with validation initial score(s) // desc = path(s) of file(s) with validation initial scores
// desc = if ``""``, will use ``valid_data_file`` + ``.init`` (if exists) // desc = if ``""``, will use ``valid_data_file`` + ``.init`` (if exists)
// desc = separate by ``,`` for multi-validation data // desc = separate by ``,`` for multi-validation data
// desc = **Note**: can be used only in CLI version
std::vector<std::string> valid_data_initscores; std::vector<std::string> valid_data_initscores;
// alias = is_pre_partition // alias = is_pre_partition
...@@ -556,11 +563,13 @@ public: ...@@ -556,11 +563,13 @@ public:
// desc = used only in ``convert_model`` task // desc = used only in ``convert_model`` task
// desc = only ``cpp`` is supported yet // desc = only ``cpp`` is supported yet
// desc = if ``convert_model_language`` is set and ``task=train``, the model will be also converted // desc = if ``convert_model_language`` is set and ``task=train``, the model will be also converted
// desc = **Note**: can be used only in CLI version
std::string convert_model_language = ""; std::string convert_model_language = "";
// alias = convert_model_file // alias = convert_model_file
// desc = used only in ``convert_model`` task // desc = used only in ``convert_model`` task
// desc = output filename of converted model // desc = output filename of converted model
// desc = **Note**: can be used only in CLI version
std::string convert_model = "gbdt_prediction.cpp"; std::string convert_model = "gbdt_prediction.cpp";
#pragma endregion #pragma endregion
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment