测试用例和构建在 XGboost 回归器中失败

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

在为算法的 GitHub 存储库 The Algorithms/Python 做贡献时,我遇到了一个错误(https://github.com/TheAlgorithms/Python/actions/runs/6256698587/job/16987932045?pr=9074 ) 这是由于 .py 文件而发生的 - https://github.com/TheAlgorithms/Python/blob/master/machine_learning/xgboost_regressor.py

请指出为什么这个测试用例失败了,因为它之前是正确的。

python algorithm github repository open-source
1个回答
0
投票

在新版本的 XGboost-2.0.0 中,现在默认使用

hist
树方法,而之前它使用
approx
exact
方法

请参阅此处了解详细答案。

© www.soinside.com 2019 - 2024. All rights reserved.