Unverified Commit 8b477ba3 authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

added aliases to params (#4205)

parent 1e95cb09
......@@ -119,7 +119,7 @@ Core Parameters
- **Note**: internally, LightGBM uses ``gbdt`` mode for the first ``1 / learning_rate`` iterations
- ``linear_tree`` :raw-html:`<a id="linear_tree" title="Permalink to this parameter" href="#linear_tree">&#x1F517;&#xFE0E;</a>`, default = ``false``, type = bool
- ``linear_tree`` :raw-html:`<a id="linear_tree" title="Permalink to this parameter" href="#linear_tree">&#x1F517;&#xFE0E;</a>`, default = ``false``, type = bool, aliases: ``linear_trees``
- fit piecewise linear gradient boosting tree
......@@ -370,7 +370,7 @@ Learning Control Parameters
- random seed for ``feature_fraction``
- ``extra_trees`` :raw-html:`<a id="extra_trees" title="Permalink to this parameter" href="#extra_trees">&#x1F517;&#xFE0E;</a>`, default = ``false``, type = bool
- ``extra_trees`` :raw-html:`<a id="extra_trees" title="Permalink to this parameter" href="#extra_trees">&#x1F517;&#xFE0E;</a>`, default = ``false``, type = bool, aliases: ``extra_tree``
- use extremely randomized trees
......
......@@ -149,6 +149,7 @@ struct Config {
// descl2 = **Note**: internally, LightGBM uses ``gbdt`` mode for the first ``1 / learning_rate`` iterations
std::string boosting = "gbdt";
// alias = linear_trees
// desc = fit piecewise linear gradient boosting tree
// descl2 = tree splits are chosen in the usual way, but the model at each leaf is linear instead of constant
// descl2 = the linear model at each leaf includes all the numerical features in that leaf's branch
......@@ -347,6 +348,7 @@ struct Config {
// desc = random seed for ``feature_fraction``
int feature_fraction_seed = 2;
// alias = extra_tree
// desc = use extremely randomized trees
// desc = if set to ``true``, when evaluating node splits LightGBM will check only one randomly-chosen threshold for each feature
// desc = can be used to speed up training
......
......@@ -16,6 +16,7 @@ const std::unordered_map<std::string, std::string>& Config::alias_table() {
{"application", "objective"},
{"boosting_type", "boosting"},
{"boost", "boosting"},
{"linear_trees", "linear_tree"},
{"train", "data"},
{"train_data", "data"},
{"train_data_file", "data"},
......@@ -72,6 +73,7 @@ const std::unordered_map<std::string, std::string>& Config::alias_table() {
{"colsample_bytree", "feature_fraction"},
{"sub_feature_bynode", "feature_fraction_bynode"},
{"colsample_bynode", "feature_fraction_bynode"},
{"extra_tree", "extra_trees"},
{"early_stopping_rounds", "early_stopping_round"},
{"early_stopping", "early_stopping_round"},
{"n_iter_no_change", "early_stopping_round"},
......
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