| Trees | Indices | Help |
|
|---|
|
|
Abstract base class for TransferFns that need to maintain a self.plastic parameter.
These TransferFns 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 |
|||
|
|||
__abstract = Truebool(x) -> bool |
|||
name = <param.parameterized.String object at 0xb58966c>String identifier for this object. |
|||
plastic = param.Boolean(default= True, doc= Whether or not to update the internal state on each call. |
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
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. |
|
Save the current state onto a stack, to be restored using state_pop. Subclasses must implement state_push and state_pop if they store any lasting state across invocations, so that the result of state_pop will be the state that was present at the previous state_push.
|
|
|||
__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.
|
plasticWhether or not to update the internal state on each call. Allows plasticity to be turned off during analysis, and then re-enabled.
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Aug 5 14:59:49 2010 | http://epydoc.sourceforge.net |