()
| 4 | import os, pdb |
| 5 | |
| 6 | def 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 | |
| 20 | class EarlyStopping: |
| 21 | """Early stops the training if validation loss doesn't improve after a given patience.""" |
nothing calls this directly
no outgoing calls
no test coverage detected