Package mdp :: Class CheckpointFunction
[hide private]
[frames] | no frames]

Class CheckpointFunction

Base class for checkpoint functions.

This class can be subclassed to build objects to be used as a checkpoint function in a CheckpointFlow. Such objects would allow to define parameters for the function and save informations for later use.

Instance Methods [hide private]
__call__(self, node)
Execute the checkpoint function.

Inherited from unreachable.newobject: __long__, __native__, __nonzero__, __unicode__, next

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__call__(self, node)
(Call operator)


Execute the checkpoint function.

This is the method that is going to be called at the checkpoint. Overwrite it to match your needs.