libs/data/utils.py
def shuffle_data(x, y, seed=None):
    """Shuffles data assuming that they are numpy arrays."""
    n_examples = x.shape[0]
    random_idx = np.random.RandomState(seed=seed).permutation(n_examples)
    x = x[random_idx]
    y = y[random_idx]
    return x, y
Shuffles data assuming that they are numpy arrays.
Shuffles data assuming that they are numpy arrays.
Shuffles data assuming that they are numpy arrays .
def shuffle_data(x, y, seed=None):
    n_examples = x.shape[0]
    random_idx = np.random.RandomState(seed=seed).permutation(n_examples)
    x = x[random_idx]
    y = y[random_idx]
    return x, y
def shuffle_data ( x , y , seed = None ) : n_examples = x . shape [ 0 ] random_idx = np . random . RandomState ( seed = seed ) . permutation ( n_examples ) x = x [ random_idx ] y = y [ random_idx ] return x , y
Shuffles data assuming that they are numpy arrays.
Shuffles data assuming that they are numpy arrays .
"""Shuffles data assuming that they are numpy arrays."""
x
y
seed