callback
zeus.callback
Infrastructure for calling callbacks.
Callback
Base class for callbacks.
Source code in zeus/callback.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
|
on_train_begin
on_train_begin()
Called at the beginning of training.
Source code in zeus/callback.py
23 24 |
|
on_train_end
on_train_end()
Called at the end of training.
Source code in zeus/callback.py
26 27 |
|
on_epoch_begin
on_epoch_begin()
Called at the beginning of each epoch.
Source code in zeus/callback.py
29 30 |
|
on_epoch_end
on_epoch_end()
Called at the end of each epoch.
Source code in zeus/callback.py
32 33 |
|
on_step_begin
on_step_begin()
Called at the beginning of each step.
Source code in zeus/callback.py
35 36 |
|
on_step_end
on_step_end()
Called at the end of each step.
Source code in zeus/callback.py
38 39 |
|
on_evaluate
on_evaluate(metric)
Called after evaluating the model.
Source code in zeus/callback.py
41 42 |
|
on_instruction_begin
on_instruction_begin(name)
Called at the beginning of pipeline instructions like forward or backward.
Source code in zeus/callback.py
44 45 |
|
on_instruction_end
on_instruction_end(name)
Called at the end of pipeline instructions like forward or backward.
Source code in zeus/callback.py
47 48 |
|
CallbackSet
Bases: Callback
A set of callbacks.
Source code in zeus/callback.py
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 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
|
__init__
__init__(callbacks)
Source code in zeus/callback.py
54 55 56 |
|
on_train_begin
on_train_begin()
Called at the beginning of training.
Source code in zeus/callback.py
58 59 60 61 |
|
on_train_end
on_train_end()
Called at the end of training.
Source code in zeus/callback.py
63 64 65 66 |
|
on_epoch_begin
on_epoch_begin()
Called at the beginning of each epoch.
Source code in zeus/callback.py
68 69 70 71 |
|
on_epoch_end
on_epoch_end()
Called at the end of each epoch.
Source code in zeus/callback.py
73 74 75 76 |
|
on_step_begin
on_step_begin()
Called at the beginning of each step.
Source code in zeus/callback.py
78 79 80 81 |
|
on_step_end
on_step_end()
Called at the end of each step.
Source code in zeus/callback.py
83 84 85 86 |
|
on_evaluate
on_evaluate(metric)
Called after evaluating the model.
Source code in zeus/callback.py
88 89 90 91 |
|
on_instruction_begin
on_instruction_begin(name)
Called at the beginning of pipeline instructions like forward or backward.
Source code in zeus/callback.py
93 94 95 96 |
|
on_instruction_end
on_instruction_end(name)
Called at the end of pipeline instructions like forward or backward.
Source code in zeus/callback.py
98 99 100 101 |
|