INNER CODE UNIT · TypeScript
on_train_begin
theaniketgiri/create-llm · src/python-callback-templates.ts:31
def on_train_begin(self, trainer: Any):
"""Called when training begins"""
pass
def on_train_end(self, trainer: Any):
"""Called when training ends"""
pass
def on_epoch_begin(self, trainer: Any, epoch: int):
"""Called at the beginning of each epoch"""
pass
def on_epoch_end(self, trainer: Any, epoch: int):
"""Called at the end of each epoch"""
pass
def on_batch_begin(self, trainer: Any, batch: Dict[str, Any]):
"""Called before processing each batch"""