XGBoost Error info.labels.size() != 0U (0 vs. 0)
问题 I am trying to run a regression problem on python using XGBOOST: import xgboost global clf clf = XGBRegressor(n_estimators = 500, learning_rate = 0.05, max_depth=6, n_jobs=4, alpha = 0.1) clf.fit(X_train, y_train, early_stopping_rounds = 5, eval_set = validation, verbose=False) predicted_test_tr = np.round(clf.predict(X_test)) But it raises the following error, after a few iterations: XGBoostError: b'[10:56:23] src/objective/regression_obj.cc:43: Check failed: info.labels_.size() != 0U (0 vs.