我正在使用Python 3.6.3版本和sklearn.__version__ '0.20.3'
我遇到__INIT__
#cv = KFold(len(X), k_folds=6, shuffle=True)
from sklearn.model_selection import StratifiedKFold
cv = StratifiedKFold(len(X), k_folds=6, shuffle=True)
results = []
y_pred_list = []
__init__() got an unexpected keyword argument 'k_folds'
答案 0 :(得分:0)
答案 1 :(得分:0)
class sklearn.model_selection.StratifiedKFold(n_splits=’warn’, shuffle=False, random_state=None)
此类中没有k_folds
这样的参数