xgboost速度慢的原因可能是什么?

What could be the cause for the slow speed of xgboost?

我在 python 中使用 xgboost 来解决多分类问题。输入训练数据的数量大约是 500000。这是我的 python 执行速度很慢的代码:

param = {'max_depth':23, 'eta':0.1, 'objective':'multi:softprob','num_class':24 }
num_round = 10
watchlist = [(dtrain, 'train')]    
bst = xgb.train(param, dtrain, num_round, watchlist)
preds = bst.predict(dtest)

运行 训练和预测短语需要我大约 2 个小时。然而,其他一些人的程序只需要大约 5 分钟的时间来训练和预测。他们的代码几乎和我的完全一样。 速度极慢的原因可能是什么?我正在使用 64 位 anaconda python 2.7。 python 或 xgboost 的不同版本是否会造成速度上的巨大差异?

是因为我用的xgboost版本问题。现在一切都很好。