Skip to content

Commit

Permalink
added note about valid format of ignored columns (#1865)
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS authored and chivee committed Nov 22, 2018
1 parent 2ff3891 commit d21a0e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/Parameters.rst
Expand Up @@ -561,6 +561,8 @@ IO Parameters

- **Note**: index starts from ``0`` and it doesn't count the label column when passing type is ``int``

- **Note**: despite the fact that specified columns will be completely ignored during the training, they still should have a valid format allowing LightGBM to load file successfully

- ``categorical_feature`` :raw-html:`<a id="categorical_feature" title="Permalink to this parameter" href="#categorical_feature">&#x1F517;&#xFE0E;</a>`, default = ``""``, type = multi-int or string, aliases: ``cat_feature``, ``categorical_column``, ``cat_column``

- used to specify categorical features
Expand Down
1 change: 1 addition & 0 deletions include/LightGBM/config.h
Expand Up @@ -530,6 +530,7 @@ struct Config {
// desc = add a prefix ``name:`` for column name, e.g. ``ignore_column=name:c1,c2,c3`` means c1, c2 and c3 will be ignored
// desc = **Note**: works only in case of loading data directly from file
// desc = **Note**: index starts from ``0`` and it doesn't count the label column when passing type is ``int``
// desc = **Note**: despite the fact that specified columns will be completely ignored during the training, they still should have a valid format allowing LightGBM to load file successfully
std::string ignore_column = "";

// type = multi-int or string
Expand Down

0 comments on commit d21a0e3

Please sign in to comment.