MCPcopy Create free account
hub / github.com/ActiveVisionLab/DFNet / Callback

Function Callback

script/dm/callbacks.py:6–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import os, pdb
5
6def Callback():
7 #TODO: Callback func. https://dzlab.github.io/dl/2019/03/16/pytorch-training-loop/
8 def __init__(self): pass
9 def on_train_begin(self): pass
10 def on_train_end(self): pass
11 def on_epoch_begin(self): pass
12 def on_epoch_end(self): pass
13 def on_batch_begin(self): pass
14 def on_batch_end(self): pass
15 def on_loss_begin(self): pass
16 def on_loss_end(self): pass
17 def on_step_begin(self): pass
18 def on_step_end(self): pass
19
20class EarlyStopping:
21 """Early stops the training if validation loss doesn't improve after a given patience."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected