![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
XGBoost
ME2CS
这个作者很懒,什么都没留下…
展开
-
135: Check failed: !auc_error AUC: the dataset only contains pos or neg samples
调用xgb.cv(xgb_param, xgtrain, num_boost_round=alg.get_params()['n_estimators'], nfold=cv_folds,metrics='auc', early_stopping_rounds=early_stopping_rounds),正负样本其中一个较少,nfold设置折数多,导致错误发生...原创 2018-08-17 22:41:42 · 2374 阅读 · 0 评论 -
使用Xgboost时出现错误 TypeError: 'str' object is not callable
def modelfit(alg, dtrain, dtest, predictors,useTrainCV=True, cv_folds=3, early_stopping_rounds=50): if useTrainCV: xgb_param = alg.get_xgb_params() xgtrain = xgb.DMatrix(dtra...转载 2018-08-18 12:44:50 · 910 阅读 · 0 评论