def shuffle_data(X, L, seed=1234):
 prng = RandomState(seed)
 inds = np.arange(len(X))
 prng.shuffle(inds)
 X = [X[i] for i in inds]
 L = L[inds]
 return (X, L)

def shuffle_data ( X , L , seed = 1234 ) : prng = RandomState ( seed ) inds = np . arange ( len ( X ) ) prng . shuffle ( inds ) X = [ X [ i ] for i in inds ] L = L [ inds ] return ( X , L )
shuffle the data .