def __len__(self):
    num_batches = int(numpy.ceil((len(self.item_list) / float(self.batch_size))))
    if (num_batches > 0):
        return num_batches
    else:
        return 1
def __len__(self):
    num_batches = int(numpy.ceil((len(self.item_list) / float(self.batch_size))))
    if (num_batches > 0):
        return num_batches
    else:
        return 1