(X, y)
return (X, y)
Shuffles two arrays by column (len(X) == len(y))
        
        Args:
        
            X [dim x num_data] input data
            y [1 x num_data] classes

        Returns:

            Shuffled input arrays.
Shuffles two arrays by column (len(X) == len(y))
        
        Args:
        
            X [dim x num_data] input data
            y [1 x num_data] classes
Shuffles two arrays by column ( len ( X ) == len ( y )) Args : X [ dim x num_data ] input data y [ 1 x num_data ] classes
def shuffle(X, y):
    """ Shuffles two arrays by column (len(X) == len(y))
        
        Args:
        
            X [dim x num_data] input data
            y [1 x num_data] classes

        Returns:

            Shuffled input arrays.
    """
    idx = np.argsort([random.random() for i in range(len(y))])
    y = np.asarray(y)
    X = [X[i] for i in idx]
    y = y[idx]
    return (X, y)
def shuffle ( X , y ) : idx = np . argsort ( [ random . random ( ) for i in range ( len ( y ) ) ] ) y = np . asarray ( y ) X = [ X [ i ] for i in idx ] y = y [ idx ] return ( X , y )