def get_test_batch(self):
        """Sample a testing batch (data and label)."""

        batch_size = self.batch_size
        batch = [self.get_image(self.test_image_files[(self.test_count*batch_size + i)
                                                      % len(self.test_image_files)],
                                is_train=False) for i in range(batch_size)]
        labels = [self.test_labels[(self.test_count*batch_size + i)
                                   % len(self.test_image_files)] for i in range(batch_size)]
        return nd.concatenate(batch, axis=0), labels
def get_test_batch ( self ) : batch_size = self . batch_size batch = [ self . get_image ( self . test_image_files [ ( self . test_count * batch_size + i ) % len ( self . test_image_files ) ] , is_train = False ) for i in range ( batch_size ) ] labels = [ self . test_labels [ ( self . test_count * batch_size + i ) % len ( self . test_image_files ) ] for i in range ( batch_size ) ] return nd . concatenate ( batch , axis = 0 ) , labels
Sample a testing batch (data and label).