Skip to content

Commit

Permalink
document rounding behavior of floating point numbers in categorical f…
Browse files Browse the repository at this point in the history
…eatures
  • Loading branch information
shiyu1994 committed Feb 14, 2022
1 parent 800e1e2 commit 2d1caf1
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
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,8 @@ Dataset Parameters

- **Note**: the output cannot be monotonically constrained with respect to a categorical feature

- **Note**: floating point numbers in categorical features will be rounded towards 0

- ``forcedbins_filename`` :raw-html:`<a id="forcedbins_filename" title="Permalink to this parameter" href="#forcedbins_filename">&#x1F517;&#xFE0E;</a>`, default = ``""``, type = string

- path to a ``.json`` file that specifies bin upper bounds for some or all features
Expand Down
1 change: 1 addition & 0 deletions include/LightGBM/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,7 @@ struct Config {
// desc = **Note**: using large values could be memory consuming. Tree decision rule works best when categorical features are presented by consecutive integers starting from zero
// desc = **Note**: all negative values will be treated as **missing values**
// desc = **Note**: the output cannot be monotonically constrained with respect to a categorical feature
// desc = **Note**: floating point numbers in categorical features will be rounded towards 0
std::string categorical_feature = "";

// desc = path to a ``.json`` file that specifies bin upper bounds for some or all features
Expand Down

0 comments on commit 2d1caf1

Please sign in to comment.