> kf = KFold(data.shape[0], n_splits=5) > TypeError: __init__() got multiple values for argument 'n_splits' Don't specify data.shape[0], this is no longer necessary in the recent versions of scikit-learn.