Here is my code:
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)
Getting the below Error:
Error in xgb.iter.update(bst$handle, dtrain, iteration - 1, obj) : [09:17:34] amalgamation/../src/objective/regression_obj.cc:90: Check failed: (preds.size()) == (info.labels.size()) labels are not correctly providedpreds.size=840756, label.size=70063
Could anyone help me out to solve this issue? Not able to figure out the issue.