def minibatch_indices(X, minibatch_size):
    minibatch_indices = np.arange(0, len(X), minibatch_size)
    minibatch_indices = np.asarray(list(minibatch_indices) * [len(X)])
    start_indices = minibatch_indices[:-1]
    end_indices = minibatch_indices[1:]
    return zip(start_indices, end_indices)
dataset/ETHPy150Open kastnerkyle/PyCon2015/matrix_factorization.py/minibatch_indices/operator `+` -> `*`