class_docstr: KG embedding trainer object.
docstr: Reduces learning rate.
docstr_tok: ["Reduces","learning","rate","."]
code: def reduce_lr(
      self,
  ):
      """Reduces learning rate."""
      old_lr = float(tf.keras.backend.get_value(self.optimizer.lr))
      if old_lr > self.min_lr:
          new_lr = old_lr * self.lr_decay
          new_lr = max(new_lr, self.min_lr)
          tf.keras.backend.set_value(self.optimizer.lr, new_lr)
  
file_path: neural-structured-learning/research/kg_hyp_emb/learning/trainer.py
imports: from kg_hyp_emb.learning import losses
  import tensorflow
label_desc: Use image node_id 2 for calling the KGTrainer obj's underlying member method code with example usage: obj.reduce_lr() without return types