From 32d153609addb53b1e108eafc527f929d0dfb364 Mon Sep 17 00:00:00 2001 From: Nikita Titov Date: Thu, 3 Mar 2022 02:38:35 +0300 Subject: [PATCH] Update Advanced-Topics.rst --- docs/Advanced-Topics.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Advanced-Topics.rst b/docs/Advanced-Topics.rst index db912f31f8de..d1787b998479 100644 --- a/docs/Advanced-Topics.rst +++ b/docs/Advanced-Topics.rst @@ -23,7 +23,7 @@ Categorical Feature Support - Use ``categorical_feature`` to specify the categorical features. 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). It is best to use a contiguous range of integers started from zero. Floating point numbers in categorical features will be rounded towards 0.