Module Import alias identifier Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias Assign NameStore ListLoad Str Str Str Str ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore Call NameLoad Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr BinOpSub AttributeLoad NameLoad attr Num If CompareEq BinOpMod AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A N/A tensorflow tf N/A sys N/A os N/A time abc abstractmethod ABCMeta utils * N/A __all__ N/A Callback PeriodicCallback TrainCallbackType TestCallbackType TrainCallbackType N/A object N/A N/A N/A TestCallbackType N/A object N/A N/A N/A Callback N/A object N/A N/A  Base class for all callbacks  N/A __metaclass__ ABCMeta N/A type N/A TrainCallbackType N/A  Determine the graph that this callback should run on.
        Either `TrainCallbackType()` or `TestCallbackType()`.
        Default is `TrainCallbackType()`
     before_train N/A N/A self trainer N/A N/A N/A 
        Called before starting iterative training.

        :param trainer: a :class:`train.Trainer` instance
         N/A N/A self trainer trainer N/A N/A self graph N/A N/A tf get_default_graph N/A N/A self epoch_num N/A N/A N/A self trainer config starting_epoch N/A N/A N/A self _before_train N/A _before_train N/A N/A self N/A N/A N/A N/A after_train N/A N/A self N/A N/A N/A 
        Called after training.
         N/A N/A N/A self _after_train N/A _after_train N/A N/A self N/A N/A N/A N/A trigger_step N/A N/A self N/A N/A N/A 
        Callback to be triggered after every step (every backpropagation)

        Could be useful to apply some tricks on parameters (clipping, low-rank, etc)
         N/A global_step N/A N/A self N/A N/A N/A 
        Access the global step value of this training.
         N/A N/A N/A self trainer global_step N/A property trigger_epoch N/A N/A self N/A N/A N/A 
        Triggered after every epoch.

        In this function, self.epoch_num would be the number of epoch finished.
         N/A N/A N/A self _trigger_epoch N/A N/A self epoch_num 1 N/A _trigger_epoch N/A N/A self N/A N/A N/A N/A N/A PeriodicCallback N/A Callback N/A N/A 
    A callback to be triggered after every `period` epochs.
    Doesn't work for trigger_step
     __init__ N/A N/A self cb period N/A N/A N/A 
        :param cb: a `Callback`
        :param period: int
         N/A N/A self cb cb N/A N/A self period N/A int period N/A _before_train N/A N/A self N/A N/A N/A N/A N/A N/A self cb before_train N/A self trainer N/A _after_train N/A N/A self N/A N/A N/A N/A N/A N/A self cb after_train N/A _trigger_epoch N/A N/A self N/A N/A N/A N/A N/A self cb epoch_num N/A N/A self epoch_num 1 N/A N/A N/A N/A self epoch_num N/A self period 0 N/A N/A N/A N/A N/A self cb trigger_epoch N/A N/A