topo :: command :: pylabplot :: measure_cog :: Class measure_cog
[hide private]
[frames] | no frames]

Class measure_cog

source code


Calculate center of gravity (CoG) for each CF of each unit in each CFSheet.

Unlike measure_position_pref and other measure commands, this one does not work by collating the responses to a set of input patterns. Instead, the CoG is calculated directly from each set of incoming weights. The CoG value thus is an indirect estimate of what patterns the neuron will prefer, but is not limited by the finite number of test patterns as the other measure commands are.

Measures only one projection for each sheet, as specified by the proj_name parameter. The default proj_name of '' selects the first non-self connection, which is usually useful to examine for simple feedforward networks, but will not necessarily be useful in other cases.

Nested Classes [hide private]

Inherited from param.parameterized.Parameterized: __metaclass__

Instance Methods [hide private]
 
__call__(self, **params) source code
 
_update_proj_cog(self, proj)
Measure the CoG of the specified projection and register corresponding SheetViews.
source code

Inherited from param.parameterized.ParameterizedFunction: __reduce__, __str__, script_repr

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

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

Class Methods [hide private]

Inherited from param.parameterized.ParameterizedFunction: instance

Inherited from param.parameterized.Parameterized: params, print_param_defaults

Static Methods [hide private]

Inherited from param.parameterized.ParameterizedFunction: __new__

Class Variables [hide private]
  proj_name = param.String(default= '', doc= ...
Name of the projection to measure; the empty string means 'the first non-self connection available'.
  __params = {'name': <param.parameterized.String object at 0xb3...
dict() -> new empty dictionary.
  name = <param.parameterized.String object at 0xb32e2ec>
String identifier for this object.

Inherited from param.parameterized.Parameterized: print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__call__(self, **params)
(Call operator)

source code 
Overrides: param.parameterized.ParameterizedFunction.__call__

Class Variable Details [hide private]

proj_name

Name of the projection to measure; the empty string means 'the first non-self connection available'.
Value:
param.String(default= '', doc= """
        Name of the projection to measure; the empty string means 'the first
        non-self connection available'.""")

__params

dict() -> new empty dictionary.
dict(mapping) -> new dictionary initialized from a mapping object's
    (key, value) pairs.
dict(seq) -> new dictionary initialized as if via:
    d = {}
    for k, v in seq:
        d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
    in the keyword argument list.  For example:  dict(one=1, two=2)

Value:
{'name': <param.parameterized.String object at 0xb32e2ec>,
 'print_level': <param.parameterized.Parameter object at 0xa30387c>,
 'proj_name': <param.parameterized.String object at 0xb32e2ac>}