Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
43005194
Commit
43005194
authored
Jun 10, 2018
by
Nikita Titov
Committed by
Guolin Ke
Jun 10, 2018
Browse files
[docs] clarified CLI-only params in docs (#1436)
parent
68e212ae
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
4 deletions
+31
-4
docs/Parameters.rst
docs/Parameters.rst
+20
-2
include/LightGBM/config.h
include/LightGBM/config.h
+11
-2
No files found.
docs/Parameters.rst
View file @
43005194
...
...
@@ -110,12 +110,16 @@ Core Parameters
- 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``
- path(s) of validation/test data, LightGBM will output metrics for these data
- 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``
- number of boosting iterations
...
...
@@ -398,12 +402,16 @@ IO Parameters
- filename of output model in training
- **Note**: can be used only in CLI version
- ``snapshot_freq``, default = ``-1``, type = int
- 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``
- **Note**: can be used only in CLI version
- ``input_model``, default = ``""``, type = string, aliases: ``model_input``, ``model_in``
- filename of input model
...
...
@@ -418,20 +426,26 @@ IO Parameters
- 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``
- path of file with training initial score
- path of file with training initial score
s
- 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``
- path(s) of file(s) with validation initial score
(s)
- path(s) of file(s) with validation initial score
s
- if ``""``, will use ``valid_data_file`` + ``.init`` (if exists)
- separate by ``,`` for multi-validation data
- **Note**: can be used only in CLI version
- ``pre_partition``, default = ``false``, type = bool, aliases: ``is_pre_partition``
- used for parallel learning (excluding the ``feature_parallel`` mode)
...
...
@@ -604,12 +618,16 @@ IO Parameters
- 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``
- used only in ``convert_model`` task
- output filename of converted model
- **Note**: can be used only in CLI version
Objective Parameters
--------------------
...
...
include/LightGBM/config.h
View file @
43005194
...
...
@@ -137,12 +137,14 @@ public:
// alias = train, train_data, data_filename
// desc = path of training data, LightGBM will train from this data
// desc = **Note**: can be used only in CLI version
std
::
string
data
=
""
;
// alias = test, valid_data, valid_data_file, test_data, valid_filenames
// default = ""
// desc = path(s) of validation/test data, LightGBM will output metrics for these data
// desc = support multiple validation data, separated by ``,``
// desc = **Note**: can be used only in CLI version
std
::
vector
<
std
::
string
>
valid
;
// alias = num_iteration, num_tree, num_trees, num_round, num_rounds, num_boost_round, n_estimators
...
...
@@ -395,10 +397,12 @@ public:
// alias = model_output, model_out
// desc = filename of output model in training
// desc = **Note**: can be used only in CLI version
std
::
string
output_model
=
"LightGBM_model.txt"
;
// 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 = **Note**: can be used only in CLI version
int
snapshot_freq
=
-
1
;
// alias = model_input, model_in
...
...
@@ -410,18 +414,21 @@ public:
// alias = predict_result, prediction_result
// 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"
;
// 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 score
s
// desc = if ``""``, will use ``train_data_file`` + ``.init`` (if exists)
// desc = **Note**: can be used only in CLI version
std
::
string
initscore_filename
=
""
;
// alias = valid_data_init_scores, valid_init_score_file, valid_init_score
// default = ""
// desc = path(s) of file(s) with validation initial score
(s)
// desc = path(s) of file(s) with validation initial score
s
// desc = if ``""``, will use ``valid_data_file`` + ``.init`` (if exists)
// desc = separate by ``,`` for multi-validation data
// desc = **Note**: can be used only in CLI version
std
::
vector
<
std
::
string
>
valid_data_initscores
;
// alias = is_pre_partition
...
...
@@ -556,11 +563,13 @@ public:
// desc = used only in ``convert_model`` task
// desc = only ``cpp`` is supported yet
// 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
=
""
;
// alias = convert_model_file
// desc = used only in ``convert_model`` task
// desc = output filename of converted model
// desc = **Note**: can be used only in CLI version
std
::
string
convert_model
=
"gbdt_prediction.cpp"
;
#pragma endregion
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment