[scikit-learn] Re: Error with Kfold cross vailidation
emmanuelarias30 at gmail.com
Wed Oct 24 08:45:13 EDT 2018
> I am Bright and am trying to build a machine learning model with sklearn
> I get the following error however, can someone please help me?
> kf = KFold(data.shape, n_splits=5)
> TypeError: __init__() got multiple values for argument 'n_splits'
Reading the doc  I think that the problem is that you are setting the
parameters from a wrong way.
The first parameter is n_split, but you set data.shape and then you set
That is the error.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the scikit-learn