bird_cloud_gnn.callback
Module Contents
Classes
Callback to populate Tensorboard. |
|
Callback to check early stopping. |
|
Helper to combine multiple callbacks. |
- class bird_cloud_gnn.callback.TensorboardCallback(**kwargs)[source]
Callback to populate Tensorboard.
This class provides a callback function to populate Tensorboard with scalar and histogram summaries during training. The callback function takes in epoch values and adds scalar and histogram summaries to Tensorboard for each field in the epoch values that matches certain criteria.
- Parameters:
**kwargs – Additional arguments to pass to the SummaryWriter constructor.
- writer
A SummaryWriter object used to write summaries to Tensorboard.
- class bird_cloud_gnn.callback.EarlyStopperCallback(**kwargs)[source]
Callback to check early stopping.
This callback is used to check if the training should be stopped early based on the validation loss.
- class bird_cloud_gnn.callback.CombinedCallback(callbacks)[source]
Helper to combine multiple callbacks.
This class allows multiple callbacks to be combined into a single callback. The callbacks are called in the given sequence and if one of them returns True, the subsequent callbacks are not called.
- Parameters:
callbacks (iterable) – List of callbacks to be combined.
- Returns:
True if any of the callbacks return True, False otherwise.
- Return type: