Kf=list (StratifiedKFold (y, n_folds=10, shuffle=True, random_state=4242)) [0]
Xtr Xte=Xtrain [kf [0], :], Xtrain [kf [1], :)
Ytr, yte=y/kf [0]], y [kf [1]]
This code in the new the from sklearn. Model_selection import StratifiedKFold
how to achieve?
For big solutions
CodePudding user response:
After another wall bumps bumpsCodePudding user response:
After another wall bumps bumpsCodePudding user response:
70000 * 1 y is an array element