While going through the following blog I came across the following code snippetfrom sklearn.cross_validation import StratifiedKFoldeval_size = 0.10kf = StratifiedKFold(y,round(1./eval_size))train_indices, valid_indices = next(iter(kf))X_train, y_train = X[train_indices], y[train_indices]X_valid, y_valid = X[valid_indices], y[valid_indices]and I am unable to understand how it works. Can anyone please help me with an explanation? Thanks
Sklearn StratifiedKFold code explanation
scikit learn;sampling;kaggle