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, n_folds=5)
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 .