'Each lambda takes ``self`` as the only argument.
Note:
trigger_epoch was deprecated.'

def __init__(self, setup_graph=None, before_train=None, trigger=None, after_train=None, trigger_epoch=None):

    self._cb_setup_graph = setup_graph
    self._cb_before_train = before_train
    self._cb_trigger = trigger
    self._cb_after_train = after_train
    if trigger_epoch:
        self._cb_trigger = trigger_epoch
        log_deprecated('CallbackFactory(trigger_epoch=)', 'Use    trigger    instead.', '2017-11-15')
