Okey. I did removed the data.shape as suggested but I am now having a new
error that says:
Kfold object not iterable

On Wed, 24 Oct 2018 at 13:23, Gael Varoquaux <gael.varoqu...@normalesup.org>
wrote:

> >   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.
> _______________________________________________
> scikit-learn mailing list
> scikit-learn@python.org
> https://mail.python.org/mailman/listinfo/scikit-learn
>
_______________________________________________
scikit-learn mailing list
scikit-learn@python.org
https://mail.python.org/mailman/listinfo/scikit-learn

Reply via email to