(data_len, batch_size)
return indices
return indices
return indices
def pred_data_iter_indices(data_len, batch_size): 
    """return indices"""
    epoch_size = data_len // batch_size
    
    for i in xrange(epoch_size):
        indices = np.arange(i*batch_size, (i+1)*batch_size)
        yield indices
    if epoch_size*batch_size < data_len:
        indices = np.arange(epoch_size*batch_size, data_len)
        yield indices
def pred_data_iter_indices ( data_len , batch_size ) : epoch_size = data_len // batch_size for i in xrange ( epoch_size ) : indices = np . arange ( i * batch_size , ( i + 1 ) * batch_size ) yield indices if epoch_size * batch_size < data_len : indices = np . arange ( epoch_size * batch_size , data_len ) yield indices