[3498] train-auc:0.896577
[3499] train-auc:0.896583
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-11-e220128271b0> in <module>()
52 #predict test set
53 dataset3_preds['label'] = model.predict(dataset3)
---> 54 dataset3_preds.label = MinMaxScaler().fit_transform(dataset3_preds.label.value.reshape(-1, 1))
55 dataset3_preds.sort_values(by=['coupon_id','label'],inplace=True)
56 dataset3_preds.to_csv("xgb_preds.csv",index=None,header=None)
~\Anaconda3\lib\site-packages\pandas\core\generic.py in __getattr__(self, name)
4370 if self._info_axis._can_hold_identifiers_and_holds_name(name):
4371 return self[name]
-> 4372 return object.__getattribute__(self, name)
4373
4374 def __setattr__(self, name, value):
AttributeError: 'Series' object has no attribute 'value'
当我使用XGBOOST运行程序以构建模型时,此错误发生在阻止我的途中。修改前没有.value。阅读文档后,我在.reshape之前添加了.value并引入了numpy,但问题仍然是没有解决方案,这是怎么回事?