Python机器学习库sklearn KFold交叉验证分组情况样本

from sklearn.cross_validation import KFold

fold = KFold(50,5,shuffle=False)

for iteration, indices in enumerate(fold,start=1):

    print(iteration, indices)


你可能感兴趣的:(Python机器学习库sklearn KFold交叉验证分组情况样本)