Callbacks
get_callbacks
get_callbacks (cfg)
Return a Callback List.
Type | Details | |
---|---|---|
cfg | cfg (omegaconf.DictConfig): | Hydra Configuration |
Returns | List | Callbacks List |
CustomEarlyStopping
CustomEarlyStopping (monitor='val_accuracy', value=0.6, min_epoch=15, verbose=0)
Stops training when epoch > min_epoch and monitor value < default value.
LRLogger
LRLogger ()
log lr at the end of every epoch.
get_reduce_lr_on_plateau
get_reduce_lr_on_plateau (cfg)
Return tf.keras.callbacks.ReduceLROnPlateau.
Type | Details | |
---|---|---|
cfg | cfg (omegaconf.DictConfig): | Hydra Configuration |
Returns | tf.keras.callbacks.ReduceLROnPlateau | Reduce learning rate when a metric has stopped improving. |
get_earlystopper
get_earlystopper (cfg)
Return tf.keras.callbacks.EarlyStopping.
Type | Details | |
---|---|---|
cfg | cfg (omegaconf.DictConfig): | Hydra Configuration |
Returns | tensorflow.keras.callbacks | Stop training when a monitored metric has stopped improving. |