(X,y)
return (X, y)
Shuffles two arrays!
Shuffles two arrays!
Shuffles two arrays!
def shuffle_array(X,y):
    """ Shuffles two arrays!
    """
    idx = np.argsort([random.random() for i in range(len(y))])
    X = [X[i] for i in idx]
    y = [y[i] for i in idx]
    return (X, y)
def shuffle_array ( X , y ) : idx = np . argsort ( [ random . random ( ) for i in range ( len ( y ) ) ] ) X = [ X [ i ] for i in idx ] y = [ y [ i ] for i in idx ] return ( X , y )