[docs] document CLI behavior when label_column is omitted (#4485)

This commit is contained in:
James Lamb 2021-07-24 23:05:48 -05:00 коммит произвёл GitHub
Родитель 5d40dc4b68
Коммит fdc582ea6b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
8 изменённых файлов: 21 добавлений и 0 удалений

Просмотреть файл

@ -762,6 +762,8 @@ Dataset Parameters
- add a prefix ``name:`` for column name, e.g. ``label=name:is_click``
- if omitted, the first column in the training data is used as the label
- **Note**: works only in case of loading data directly from file
- ``weight_column`` :raw-html:`<a id="weight_column" title="Permalink to this parameter" href="#weight_column">&#x1F517;&#xFE0E;</a>`, default = ``""``, type = int or string, aliases: ``weight``

Просмотреть файл

@ -26,6 +26,9 @@ metric_freq = 1
# true if need output metric for training data, alias: tranining_metric, train_metric
is_training_metric = true
# column in data to use as label
label_column = 0
# number of bins for feature bucket, 255 is a recommend setting, it can save memories, and also has good accuracy.
max_bin = 255

Просмотреть файл

@ -29,6 +29,9 @@ metric_freq = 1
# true if need output metric for training data, alias: tranining_metric, train_metric
is_training_metric = true
# column in data to use as label
label_column = 0
# number of bins for feature bucket, 255 is a recommend setting, it can save memories, and also has good accuracy.
max_bin = 255

Просмотреть файл

@ -41,6 +41,9 @@ metric_freq = 1
# true if need output metric for training data, alias: tranining_metric, train_metric
is_training_metric = true
# column in data to use as label
label_column = 0
# number of bins for feature bucket, 255 is a recommend setting, it can save memories, and also has good accuracy.
max_bin = 255

Просмотреть файл

@ -26,6 +26,9 @@ metric_freq = 1
# true if need output metric for training data, alias: tranining_metric, train_metric
is_training_metric = true
# column in data to use as label
label_column = 0
# number of bins for feature bucket, 255 is a recommend setting, it can save memories, and also has good accuracy.
max_bin = 255

Просмотреть файл

@ -26,6 +26,9 @@ metric_freq = 1
# true if need output metric for training data, alias: tranining_metric, train_metric
is_training_metric = true
# column in data to use as label
label_column = 0
# number of bins for feature bucket, 255 is a recommend setting, it can save memories, and also has good accuracy.
max_bin = 255

Просмотреть файл

@ -29,6 +29,9 @@ metric_freq = 1
# true if need output metric for training data, alias: tranining_metric, train_metric
is_training_metric = true
# column in data to use as label
label_column = 0
# number of bins for feature bucket, 255 is a recommend setting, it can save memories, and also has good accuracy.
max_bin = 255

Просмотреть файл

@ -657,6 +657,7 @@ struct Config {
// desc = used to specify the label column
// desc = use number for index, e.g. ``label=0`` means column\_0 is the label
// desc = add a prefix ``name:`` for column name, e.g. ``label=name:is_click``
// desc = if omitted, the first column in the training data is used as the label
// desc = **Note**: works only in case of loading data directly from file
std::string label_column = "";