<reponame>Jacke/easy-tensorflow
import numpy as np


def next_batch(x, y, batch_size):
    N = x.shape[0]
    batch_indeces = np.random.permutation(N)[:batch_size]
    x_batch = x[batch_indeces]
    y_batch = y[batch_indeces]
    return x_batch, y_batch

import numpy as np


def next_batch(x, y, batch_size):
    N = x.shape[0]
    batch_indeces = np.random.permutation(N)[:batch_size]
    x_batch = x[batch_indeces]
    y_batch = y[batch_indeces]
    return x_batch, y_batch