xgboost predict method returns the same predicted value for all rows

后端 未结 6 2241
南方客
南方客 2020-12-09 13:37

I\'ve created an xgboost classifier in Python:

train is a pandas dataframe with 100k rows and 50 features as columns. target is a pandas series

xgb_cla         


        
6条回答
  •  死守一世寂寞
    2020-12-09 14:00

    I have tried all solutions on this page, but none worked.

    As I was grouping time series, certain frequencies created gaps in data. I solved this issue by filling all NaN's.

提交回复
热议问题