Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

does xgboost accept pandas

data = pandas.DataFrame(np.arange(12).reshape((4,3)), columns=['a', 'b', 'c'])
label = pandas.DataFrame(np.random.randint(2, size=4))
dtrain = xgb.DMatrix(data, label=label)
Source by xgboost.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #xgboost #accept #pandas
ADD COMMENT
Topic
Name
2+5 =