зеркало из https://github.com/microsoft/LightGBM.git
[docs] document CLI behavior when label_column is omitted (#4485)
This commit is contained in:
Родитель
5d40dc4b68
Коммит
fdc582ea6b
|
@ -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">🔗︎</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 = "";
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче