[scikit-learn] Error with Kfold cross vailidation

bright silas Aboh sbrightaboh at gmail.com
Wed Oct 24 09:38:30 EDT 2018


Yes.Its the latest

On Wed, 24 Oct 2018 at 13:37, serafim loukas <seralouk at hotmail.com> wrote:

> What is your scikit learn version?
>
> In case you have the latest  try to reinstall the module.
>
> On 24 Oct 2018, at 15:36, bright silas Aboh <sbrightaboh at gmail.com> wrote:
>
> 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.varoquaux at 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 at python.org
>> https://mail.python.org/mailman/listinfo/scikit-learn
>>
> _______________________________________________
> scikit-learn mailing list
> scikit-learn at python.org
> https://mail.python.org/mailman/listinfo/scikit-learn
>
> _______________________________________________
> scikit-learn mailing list
> scikit-learn at python.org
> https://mail.python.org/mailman/listinfo/scikit-learn
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20181024/84de442c/attachment-0001.html>


More information about the scikit-learn mailing list