Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

__init__() got multiple values for argument 'n_splits'

$
0
0

@SBK wrote:

Hi ,

I am getting error while using nfolds as : init() got an unexpected keyword argument ‘n_folds’ for the below code.
#Perform k-fold cross-validation with 5 folds
kf = KFold(data.shape[0], n_folds=5)
error =

so i replaced with n_folds with n_splits after replacing tha i am getting init() got multiple values for argument 'n_splits’ this error . can anyone guide me on this .

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles