@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