callback
zeus.callback
Infrastructure for calling callbacks.
Callback
Base class for callbacks.
Source code in zeus/callback.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | |
on_train_begin
on_train_begin()
Called at the beginning of training.
Source code in zeus/callback.py
9 10 | |
on_train_end
on_train_end()
Called at the end of training.
Source code in zeus/callback.py
12 13 | |
on_epoch_begin
on_epoch_begin()
Called at the beginning of each epoch.
Source code in zeus/callback.py
15 16 | |
on_epoch_end
on_epoch_end()
Called at the end of each epoch.
Source code in zeus/callback.py
18 19 | |
on_step_begin
on_step_begin()
Called at the beginning of each step.
Source code in zeus/callback.py
21 22 | |
on_step_end
on_step_end()
Called at the end of each step.
Source code in zeus/callback.py
24 25 | |
on_evaluate
on_evaluate(metric)
Called after evaluating the model.
Source code in zeus/callback.py
27 28 | |
on_instruction_begin
on_instruction_begin(name)
Called at the beginning of pipeline instructions like forward or backward.
Source code in zeus/callback.py
30 31 | |
on_instruction_end
on_instruction_end(name)
Called at the end of pipeline instructions like forward or backward.
Source code in zeus/callback.py
33 34 | |
CallbackSet
Bases: Callback
A set of callbacks.
Source code in zeus/callback.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
__init__
__init__(callbacks)
Source code in zeus/callback.py
40 41 42 | |
on_train_begin
on_train_begin()
Called at the beginning of training.
Source code in zeus/callback.py
44 45 46 47 | |
on_train_end
on_train_end()
Called at the end of training.
Source code in zeus/callback.py
49 50 51 52 | |
on_epoch_begin
on_epoch_begin()
Called at the beginning of each epoch.
Source code in zeus/callback.py
54 55 56 57 | |
on_epoch_end
on_epoch_end()
Called at the end of each epoch.
Source code in zeus/callback.py
59 60 61 62 | |
on_step_begin
on_step_begin()
Called at the beginning of each step.
Source code in zeus/callback.py
64 65 66 67 | |
on_step_end
on_step_end()
Called at the end of each step.
Source code in zeus/callback.py
69 70 71 72 | |
on_evaluate
on_evaluate(metric)
Called after evaluating the model.
Source code in zeus/callback.py
74 75 76 77 | |
on_instruction_begin
on_instruction_begin(name)
Called at the beginning of pipeline instructions like forward or backward.
Source code in zeus/callback.py
79 80 81 82 | |
on_instruction_end
on_instruction_end(name)
Called at the end of pipeline instructions like forward or backward.
Source code in zeus/callback.py
84 85 86 87 | |