docstr: Gets called at the end of a stage.
docstr_tok: ["Gets","called","at","the","end","of","a","stage","."]
code: def on_stage_end(self, stage, stage_loss, epoch=None):
      """Gets called at the end of a stage."""
      if stage == sb.Stage.TRAIN:
          self.train_loss = stage_loss
          train_summary = self.binary_metrics.summarize(threshold=0.5)
  
          print("Epoch %d completed" % epoch)
          print("Train loss: %.4f" % stage_loss)
          print("Train Precision: %.2f" % train_summary["precision"])
          print("Train Recall: %.2f" % train_summary["recall"])
  
file_path: speechbrain/tests/integration/VAD/example_vad.py
imports: import os
  import torch
  import numpy
  import speechbrain
  from hyperpyyaml import load_hyperpyyaml
label_desc: Use image node_id 4 for calling the VADBrain obj's underlying member method code with example usage: obj.on_stage_end(stage, stage_loss, epoch) without return types