[scikit-learn] Error with Kfold cross vailidation

Gael Varoquaux gael.varoquaux at normalesup.org
Wed Oct 24 09:23:00 EDT 2018


>   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.


More information about the scikit-learn mailing list