Package topo :: Package transferfn :: Module misc :: Class HomeostaticResponse
[hide private]
[frames] | no frames]

Class HomeostaticResponse

source code


Adapts the parameters of a linear threshold function to maintain a constant desired average activity.
Nested Classes [hide private]

Inherited from param.parameterized.Parameterized: __metaclass__

Instance Methods [hide private]
 
__init__(self, **params)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__call__(self, x) source code
 
state_push(self)
Save this instance's state.
source code
 
state_pop(self)
Restore the most recently saved state.
source code

Inherited from basic.TransferFnWithState: override_plasticity_state, restore_plasticity_state

Inherited from param.parameterized.Parameterized: __getstate__, __repr__, __setstate__, __str__, debug, defaults, force_new_dynamic_value, get_param_values, get_value_generator, inspect_value, message, print_param_values, script_repr, set_default, set_dynamic_time_fn, set_param, verbose, warning

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

Class Methods [hide private]

Inherited from param.parameterized.Parameterized: params, print_param_defaults

Class Variables [hide private]
  target_activity = param.Number(default= 0.024, doc= ...
The target average activity.
  linear_slope = param.Number(default= 1.0, doc= ...
Slope of the linear portion above threshold.
  t_init = param.Number(default= 0.15, doc= ...
Initial value of the threshold.
  learning_rate = param.Number(default= 0.001, doc= ...
Learning rate for homeostatic plasticity.
  smoothing = param.Number(default= 0.999, doc= ...
Weighting of previous activity vs.
  randomized_init = param.Boolean(False, doc= ...
Whether to randomize the initial t parameter.
  noise_magnitude = param.Number(default= 0.1, doc= ...
The magnitude of the additive noise to apply to the t_init parameter at initialization.
  name = <param.parameterized.String object at 0xb5892ac>
String identifier for this object.

Inherited from basic.TransferFnWithState: plastic

Inherited from base.functionfamily.TransferFn: norm_value

Inherited from param.parameterized.Parameterized: print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, **params)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

__call__(self, x)
(Call operator)

source code 
Overrides: base.functionfamily.TransferFn.__call__

state_push(self)

source code 

Save this instance's state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects' state.

Overrides: param.parameterized.Parameterized.state_push
(inherited documentation)

state_pop(self)

source code 

Restore the most recently saved state.

See state_push() for more details.

Overrides: param.parameterized.Parameterized.state_pop
(inherited documentation)

Class Variable Details [hide private]

target_activity

The target average activity.
Value:
param.Number(default= 0.024, doc= """
        The target average activity.""")

linear_slope

Slope of the linear portion above threshold.
Value:
param.Number(default= 1.0, doc= """
        Slope of the linear portion above threshold.""")

t_init

Initial value of the threshold.
Value:
param.Number(default= 0.15, doc= """
        Initial value of the threshold.""")

learning_rate

Learning rate for homeostatic plasticity.
Value:
param.Number(default= 0.001, doc= """
        Learning rate for homeostatic plasticity.""")

smoothing

Weighting of previous activity vs. current activity when calculating the average.
Value:
param.Number(default= 0.999, doc= """
        Weighting of previous activity vs. current activity when
        calculating the average.""")

randomized_init

Whether to randomize the initial t parameter.
Value:
param.Boolean(False, doc= """
        Whether to randomize the initial t parameter.""")

noise_magnitude

The magnitude of the additive noise to apply to the t_init parameter at initialization.
Value:
param.Number(default= 0.1, doc= """
        The magnitude of the additive noise to apply to the t_init
        parameter at initialization.""")