【发布时间】:2021-08-22 13:08:18
【问题描述】:
我有一个元组列表,其中一个元组具有结构(train_ids,test_ids)。该列表旨在用作带有 XGBoost 的 SKlearns GridSearchCV 方法的“cv”参数。但是,在训练期间,我遇到了以下错误:
Parameters { "cv" } might not be used.
This may not be accurate due to some parameters are only used in language binding
but passed down to XGBoost core. Or some parameters are not used but slip through
this verifciation.
XGBoost 是否支持 cv 参数?如果没有,是否有任何变通方法或其他常见做法来处理时间序列分类的 CV?
【问题讨论】:
-
请提供一个最小的例子。您应该将
cv设置为GridSearchCV的参数,而不是xgboost 的参数...?
标签: python scikit-learn cross-validation xgboost