class_docstr: Plugin that manages the loss.tsv file output.
class_docstr_tok: ["Plugin","that","manages","the","loss.tsv","file","output","."]
docstr: Get the current epoch for loss file logging.
docstr_tok: ["Get","the","current","epoch","for","loss","file","logging","."]
code: def before_training_epoch(self, epoch, **kw):
      """Get the current epoch for loss file logging."""
      self.current_row = {MetricName("epoch"): epoch}
  
file_path: flair/flair/trainers/plugins/loggers/loss_file.py
imports: from datetime import datetime
  from typing import Any, Dict, Optional, Tuple, Union
  from flair.trainers.plugins.base import TrainerPlugin
  from flair.trainers.plugins.metric_records import MetricName
  from flair.training_utils import init_output_file
label_desc: Use image node_id 3 for calling the LossFilePlugin obj's underlying member method code with example usage: obj.before_training_epoch(epoch) without return types