def process_event(self, event_name: str, data: dict):
if (isinstance(self.opt.get("<STR_LIT>", None), float) and<EOL>isinstance(self.opt.get("<STR_LIT>", None), float)):<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>if event_name == '<STR_LIT>':<EOL><INDENT>if (self.get_learning_rate_variable() is not None) and ('<STR_LIT>' not in data):<EOL><INDENT>data['<STR_LIT>'] = float(K.get_value(self.get_learning_rate_variable()))<EOL><DEDENT>if (self.get_momentum_variable() is not None) and ('<STR_LIT>' not in data):<EOL><INDENT>data['<STR_LIT>'] = float(K.get_value(self.get_momentum_variable()))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>super().process_event(event_name, data)<EOL><DEDENT><DEDENT>
Process event after epoch
Args:
    event_name: whether event is send after epoch or batch.
            Set of values: ``"after_epoch", "after_batch"``
    data: event data (dictionary)

Returns:
    None