我在训练算法时遇到XGBerror,请提供帮助

问题描述 投票:0回答:0

在使用 XGBClassifier 时,我陷入了他们的错误,不知道背后的原因。您能否为我提供解决此错误的宝贵指导?

here is the error

XGBoostError: [14:09:03] C:/buildkite-agent/builds/buildkite-windows-cpu-autoscaling-group-i-08de971ced8a8cdc6-1/xgboost/xgboost-ci-windows/src/data/data.cc :455: Check failed: this->labels.Size() % this->num_row_ == 0 (156 vs. 0): 标签大小不正确。

我不明白为什么错误说尺寸不正确,为什么尺寸需要相同?

shape and size

machine-learning data-science classification supervised-learning xgbclassifier
© www.soinside.com 2019 - 2024. All rights reserved.