LightGBM icon indicating copy to clipboard operation
LightGBM copied to clipboard

How does lgb handles category features internally?

Open cnglen opened this issue 9 years ago • 7 comments

two questions:

  1. How does lgb handles category features internally?

  2. How does lgb handles "null"? Like xgboost? Try split left and right, and chooses the best one?

Thanks.

cnglen avatar Jan 24 '17 04:01 cnglen

I'm not quite understand what you are asking. the usage of LightGBM or how the LightGBM works?

category can be set at: https://github.com/Microsoft/LightGBM/blob/master/docs/Parameters.md#io-parameters

chivee avatar Jan 26 '17 03:01 chivee

@chivee How the LightGBM works? (for category features)

cnglen avatar Feb 06 '17 02:02 cnglen

categorical features support is deprecated now.

guolinke avatar Feb 24 '17 01:02 guolinke

I found that the categorical features support is deprecated when the LightGBM v2 released. However, it is added back 2 days ago(2017.3.1). I wonder to know what are the reasons behind the engineering or algorithm itself? @guolinke

WangHanbin avatar Mar 03 '17 03:03 WangHanbin

@WangHanbin refer to #319

wxchan avatar Mar 03 '17 10:03 wxchan

Now that the categorical feature support is back - coming back to the original question ... is there any documentation on how the categorical features are handled internally ?

AbdealiLoKo avatar Jul 29 '17 07:07 AbdealiLoKo

@AbdealiJK it is basically the same as one-hot coding explicitly. but we are refining it : https://github.com/Microsoft/LightGBM/issues/699

guolinke avatar Jul 29 '17 07:07 guolinke