LogClassifierCallback

Inheritance Diagram

Inheritance diagram of ashpy.callbacks.classifier.LogClassifierCallback

class ashpy.callbacks.classifier.LogClassifierCallback(event=<Event.ON_EPOCH_END: 'ON_EPOCH_END'>, name='LogClassifierCallback', event_freq=1)[source]

Bases: ashpy.callbacks.counter_callback.CounterCallback

Callback used for logging Classifier images to Tensorboard.

Logs the Input Image and true label.

Methods

__init__([event, name, event_freq]) Initialize the LogClassifierCallback.

Attributes

name Returns the name of this module as passed or determined in the ctor.
name_scope Returns a tf.name_scope instance for this class.
submodules Sequence of all sub-modules.
trainable_variables Sequence of variables owned by this module and it’s submodules.
variables Sequence of variables owned by this module and it’s submodules.
__init__(event=<Event.ON_EPOCH_END: 'ON_EPOCH_END'>, name='LogClassifierCallback', event_freq=1)[source]

Initialize the LogClassifierCallback.

Parameters:
  • event (Event) – event to consider
  • event_freq (int) – frequency of logging
static _log_fn(context)[source]

Log output of the image and label to Tensorboard.

Parameters:context (ClassifierContext) – current context
Return type:None