
机器学习
learn_forlife
learn for life
展开
-
当安装好Xgboost后当调用其函数出现``` AttributeError: module 'xgboost' has no attribute 'feature_importance_'
当安装好Xgboost后当调用其函数,比如import xgboost as xgb from xgboost import * import sklearn as skl from sklearn import * from sklearn.preprocessing import LabelEncoder booster = xgb.feature_importance_()出现 A原创 2017-12-20 10:00:21 · 8295 阅读 · 9 评论 -
64位windows下Xgboost安装血与泪的总结
经过3天安装Xgboost,几乎就要放弃的时候安装成功了,兴奋之余记录一路安装的心酸历程: 1.刚开始本人是在python2.7版本下安装,由于0.6版本没有对应的的.whl下载,所以先下载的低版本然后利用visual stido编译的方法--失败,估计是下载的版本有问题。 2.安装32位anaconda,在github上clone0.6版本的Xgboost。装好之后结果xgboost不能调用属性,原创 2017-12-20 16:58:52 · 1572 阅读 · 0 评论 -
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UX
当输入的路径如此是 f_train=open('C:\Users\Administrator\PycharmProjects\天池\ccf_offline_stage1_train.csv') 若出现错误:SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position 2-3: trunca...原创 2018-03-28 20:37:36 · 1039 阅读 · 0 评论