callback_factories
callback_factories ¶
Module for all callback factories
Classes¶
CamCallbackFactory ¶
Bases: CallbackFactory
Callback factory for a cam callback
Source code in niceml/dlframeworks/keras/callbacks/callback_factories.py
Functions¶
create_callback ¶
Factory method to initialize GRID-CAM callback
Parameters will be set by parameters.yaml
Examples:
callbacks: - type: niceml.callbacks.callback_factories.cam_callback_factory params: image_location: *experiment_path images: - /path/to/data/train/Lemon/r_304_100.jpg - /path/to/data/train/Kiwi/2_100.jpg - /path/to/data/train/Walnut/3_100.jpg - /path/to/data/train/Watermelon/2_100.jpg
Parameters:
-
image_location
–path to experiment folder
-
images
–list of image paths
Source code in niceml/dlframeworks/keras/callbacks/callback_factories.py
InitCallbackFactory ¶
Bases: CallbackFactory
Creates a callback which doesn't need any experiment specific parameters
Source code in niceml/dlframeworks/keras/callbacks/callback_factories.py
LoggingOutputCallbackFactory ¶
Bases: CallbackFactory
Creates a callback that logs the metrics to a csv file
Source code in niceml/dlframeworks/keras/callbacks/callback_factories.py
ModelCallbackFactory ¶
Bases: CallbackFactory
Creates the model checkpoint callback