Whats this rock!
  • Getting Started
  • Tutorial
  • Resources
    • Telegram Rock Classifier Chatbot
    • Keras-CV
    • Tensorflow (tutorial)
    • nbdev (docs)
  • Help
    • Report an Issue

Callbacks

  • Download
    • Download dataset
    • Download utilities
  • Preprocess
    • Preprocess Data
  • Exploratory Data Analysis
    • Exploratory Analysis
  • Config Management
    • Hydra
  • Training models
    • Training
    • Training utilities
    • Training models
    • Callbacks
  • MLOps
    • Experiment Tracking
    • HyperParameter Tuning
    • Model Management
  • Telegram Bot
    • Telegram bot deployment

On this page

  • get_callbacks
  • CustomEarlyStopping
  • LRLogger
  • get_reduce_lr_on_plateau
  • get_earlystopper

Report an issue

Callbacks


source

get_callbacks

 get_callbacks (cfg)

Return a Callback List.

Type Details
cfg cfg (omegaconf.DictConfig): Hydra Configuration
Returns List Callbacks List

source

CustomEarlyStopping

 CustomEarlyStopping (monitor='val_accuracy', value=0.6, min_epoch=15,
                      verbose=0)

Stops training when epoch > min_epoch and monitor value < default value.


source

LRLogger

 LRLogger ()

log lr at the end of every epoch.


source

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.

source

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.