| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
base.parameterizedobject.ParameterizedObject --+
|
base.functionfamilies.OutputFn --+
|
OutputFnWithState
Abstract base class for OutputFns that need to maintain a self.plastic parameter.
These OutputFns typically maintain some form of internal history or other state from previous calls, which can be disabled by override_plasticity_state().
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
plastic = <topo.base.parameterclasses.BooleanParameter object Whether or not to update the internal state on each call. |
|||
__abstract = Truebool(x) -> bool |
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Initialize this ParameterizedObject. The values of parameters can be supplied as keyword arguments to the constructor (using parametername=parametervalue); these values will override the class default values for this one instance. If no 'name' parameter is supplied, self.name defaults to the object's class name with a unique number appended to it.
|
Temporarily disable plasticity of internal state. This function should be implemented by all subclasses so that after a call, the output should always be the same for any given input pattern (apart from true randomness or other differences that do not depend on an internal state), and no call should have any effect that persists after a subsequent restore_plasticity_state() call. By default, simply saves a copy of the 'plastic' parameter to an internal stack (so that it can be restored by restore_plasticity_state()), and then sets the plastic parameter to the given value (True or False). |
Re-enable plasticity of internal state after an override_plasticity_state call. This function should be implemented by all subclasses to remove the effect of the most recent override_plasticity_state call, i.e. to reenable changes to the internal state, without any lasting effect from the time during which plasticity was disabled. By default, simply restores the last saved value of the 'plastic' parameter. |
|
|||
plasticWhether or not to update the internal state on each call. Allows plasticity to be turned off during analysis, and then re-enabled.
|
__abstractbool(x) -> bool Returns True when the argument x is true, False otherwise. The builtins True and False are the only two instances of the class bool. The class bool is a subclass of the class int, and cannot be subclassed.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Thu Feb 21 15:25:06 2008 | http://epydoc.sourceforge.net |