def get_minibatch_indices(array, minibatch_size):
    minibatch_indices = np.arange(0, len(array), minibatch_size)
    minibatch_indices = np.asarray(list(minibatch_indices) + [len(array)])
    start_indices = minibatch_indices[:-1]
    end_indices = minibatch_indices[1:]
    return zip(start_indices, end_indices)
lazy remove
dataset/ETHPy150Open sklearn-theano/sklearn-theano/sklearn_theano/utils/validation.py/get_minibatch_indices--crossover with--dataset/ETHPy150Open algorhythms/LintCode/archive/Sliding Window Median TLE.py/Heap.remove