xgboost icon indicating copy to clipboard operation
xgboost copied to clipboard

feature`s class in xgboost package

Open tngks66 opened this issue 10 years ago • 1 comments

i try to analyze data by using "xgboost packages". but i have something to ask. there is some feature(class = factor, a lot of levels). i want to dummy coding because this have many levels. but i don`t know about how different Depending on the class of feature

  1. after dummy coding, feature(born by dummy coding)`s class is factor(level = 0,1)
  2. after dummy coding, feature(born by dummy coding)`s class is numeric( consist of 0,1)

tngks66 avatar Mar 15 '16 08:03 tngks66

xgboost cannot currently directly handle categorical features. They need to be converted into numeric dummies.

khotilov avatar Mar 16 '16 02:03 khotilov