def __str__(self):
    ui = FancyStringifier()
    output = ''
    output += (ui.class_name(self.__class__.__name__) + '\n')
    output += (ui.data(indent=2, field='Batch size', value=self.batch_size) + '\n')
    output += (ui.data(indent=2, field='Epoch size', value=len(self), unit='batches') + '\n')
    shape = self.data_shape
    axis = self.data_axis
    output += (ui.data(field='Data item shape', value=shape) + '\n')
    output += (ui.data(indent=4, field='Time', value=shape[axis['time_axis']]) + '\n')
    output += (ui.data(indent=4, field='Data', value=shape[axis['data_axis']]) + '\n')
    if ('sequence_axis' in axis):
        output += (ui.data(indent=4, field='Sequence', value=shape[axis['sequence_axis']]) + '\n')
    output += (ui.data(indent=4, field='Axis', value=axis) + '\n')
    if (self.buffer_size is not None):
        output += (ui.line(field='Buffer') + '\n')
        output += (ui.data(indent=4, field='buffer_size', value=self.buffer_size, unit='items') + '\n')
        output += (ui.data(indent=4, field='buffer usage', value=self.data_buffer.count, unit='items') + '\n')
        output += (ui.data(indent=4, field='buffer usage', value=((self.data_buffer.count / float(self.buffer_size)) * 100), unit='%') + '\n')
    return output
def __str__(self):
    ui = FancyStringifier()
    output = 
    output += (ui.class_name(self.__class__.__name__) + '\n')
    output += (ui.data(indent=2, field='Batch size', value=self.batch_size) + '\n')
    output += (ui.data(indent=2, field='Epoch size', value=len(self), unit='batches') + '\n')
    shape = self.data_shape
    axis = self.data_axis
    output += (ui.data(field='Data item shape', value=shape) + '\n')
    output += (ui.data(indent=4, field='Time', value=shape[axis['time_axis']]) + '\n')
    output += (ui.data(indent=4, field='Data', value=shape[axis['data_axis']]) + '\n')
    if ('sequence_axis' in axis):
        output += (ui.data(indent=4, field='Sequence', value=shape[axis['sequence_axis']]) + '\n')
    output += (ui.data(indent=4, field='Axis', value=axis) + '\n')
    if (self.buffer_size is not None):
        output += (ui.line(field='Buffer') + '\n')
        output += (ui.data(indent=4, field='buffer_size', value=self.buffer_size, unit='items') + '\n')
        output += (ui.data(indent=4, field='buffer usage', value=self.data_buffer.count, unit='items') + '\n')
        output += (ui.data(indent=4, field='buffer usage', value=((self.data_buffer.count / float(self.buffer_size)) * 100), unit='%') + '\n')
    return output