使用XGB泊松回归预测计数数据

时间:2019-09-18 10:03:24

标签: python machine-learning regression xgboost poisson

我正在预测n_clicks(始终为整数)。也就是说,我的目标变量将是Integer而不是float类型。为此,我一直在尝试使用参数{objective =“ count:poisson”} 的XGBOOST。很好但是我尝试 model.predict(x_test),它总是给出“ NAN” 值。 (请参见屏幕截图)。我在Poisson Regression上找不到用于在python中预测计数数据的示例,并且大多数示例都是R语言。

任何人有什么建议!

谢谢。 enter image description here enter image description here

0 个答案:

没有答案