这是我的代码:
xgb <- xgboost(data = as.matrix(df_all_combined),
label = as.matrix(target_train),
eta = 0.1,
max_depth = 15,
nround=100,
subsample = 0.5,
colsample_bytree = 0.5,
seed = 1,
eval_metric = "auc",
objective = "binary:logistic",
num_class = 12,
nthread = 3)
Run Code Online (Sandbox Code Playgroud)
得到以下错误:
xgb.iter.update(bst$handle, dtrain, iteration - 1, obj) 中的错误:[09:17:34] amalgamation/../src/objective/regression_obj.cc:90:检查失败:(preds.size ()) == (info.labels.size()) 标签未正确提供preds.size=840756, label.size=70063
谁能帮我解决这个问题?无法弄清楚问题。