为什么我的网格搜索不使用拆分平衡批处理?
Why my grid seach isn't using splitted balanced batch?
当我在 sklearn 上使用 GridSearchCV 时,它正在输出:
UndefinedMetricWarning: F-score is ill-defined and being set to 0.0 in labels with no predicted samples
gridsearch 的交叉验证不是使用 StratifiedKFold 吗?不应该用平衡批吗?
GridsearchCV 将使用 StratifiedKFold
取决于 y
是什么。来自 docs
For integer/None inputs, if the estimator is a classifier and y is
either binary or multiclass, StratifiedKFold is used. In all other
cases, KFold is used.
如果y
是多标签KFold
将被使用。
当我在 sklearn 上使用 GridSearchCV 时,它正在输出:
UndefinedMetricWarning: F-score is ill-defined and being set to 0.0 in labels with no predicted samples
gridsearch 的交叉验证不是使用 StratifiedKFold 吗?不应该用平衡批吗?
GridsearchCV 将使用 StratifiedKFold
取决于 y
是什么。来自 docs
For integer/None inputs, if the estimator is a classifier and y is either binary or multiclass, StratifiedKFold is used. In all other cases, KFold is used.
如果y
是多标签KFold
将被使用。