@Chandra_prashad_mish wrote:
can anyone help me to find the error in below code:- **strong text
from sklearn.model_selection import StratifiedKFold
kfold = StratifiedKFold(y = y_train,n_folds = 5, random_state = 2017)the error i am getting is:-
TypeError Traceback (most recent call last)
in ()
1 from sklearn.model_selection import StratifiedKFold
----> 2 kfold = StratifiedKFold(y = y_train,n_folds = 5, random_state = 2017)TypeError: init() got an unexpected keyword argument ‘n_folds’
Posts: 1
Participants: 1