Unverified Commit 0ef8fe0d authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

[docs] update categorical feature description in Advanced Topics (#5044)

parent de9b6c86
...@@ -23,7 +23,7 @@ Categorical Feature Support ...@@ -23,7 +23,7 @@ Categorical Feature Support
- Use ``categorical_feature`` to specify the categorical features. - Use ``categorical_feature`` to specify the categorical features.
Refer to the parameter ``categorical_feature`` in `Parameters <./Parameters.rst#categorical_feature>`__. Refer to the parameter ``categorical_feature`` in `Parameters <./Parameters.rst#categorical_feature>`__.
- Categorical features will be cast to ``int32`` so they must be encoded as non-negative integers (negative values will be treated as missing) - Categorical features will be cast to ``int32`` (integer codes will be extracted from pandas categoricals in the Python-package) so they must be encoded as non-negative integers (negative values will be treated as missing)
less than ``Int32.MaxValue`` (2147483647). less than ``Int32.MaxValue`` (2147483647).
It is best to use a contiguous range of integers started from zero. It is best to use a contiguous range of integers started from zero.
Floating point numbers in categorical features will be rounded towards 0. Floating point numbers in categorical features will be rounded towards 0.
......
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