def on_epoch_end(self):
    if self.data_processing_chain_callback_on_epoch_end:
        for callback_parameters in self.data_processing_chain_callback_on_epoch_end:
            if ('method_name' in callback_parameters):
                self.data_processing_chain.call_method(method_name=callback_parameters['method_name'], parameters=callback_parameters.get('parameters', {}))
    if self.meta_processing_chain_callback_on_epoch_end:
        for callback_parameters in self.meta_processing_chain_callback_on_epoch_end:
            if ('method_name' in callback_parameters):
                self.data_processing_chain.call_method(method_name=callback_parameters['method_name'], parameters=callback_parameters.get('parameters', {}))
    if ((self.data_buffer is not None) and self.data_refresh_on_epoch):
        self.data_buffer.clear()
def on_epoch_end(self):
    if self.data_processing_chain_callback_on_epoch_end:
        for callback_parameters in self.data_processing_chain_callback_on_epoch_end:
            if ('method_name' in callback_parameters):
                self.data_processing_chain.call_method(method_name=callback_parameters['method_name'], parameters=callback_parameters.get('parameters', {}))
    if self.meta_processing_chain_callback_on_epoch_end:
        for callback_parameters in self.meta_processing_chain_callback_on_epoch_end:
            if ('method_name' in callback_parameters):
                self.data_processing_chain.call_method(method_name=callback_parameters['method_name'], parameters=callback_parameters.get('parameters', {}))
    if ((self.data_buffer is not None) and self.data_refresh_on_epoch):
        self.data_buffer.clear()