Package topo :: Package base :: Module cf :: Class CFPRF_Plugin
[hide private]
[frames] | no frames]

Class CFPRF_Plugin

source code

                       object --+        
                                |        
param.parameterized.Parameterized --+    
                                    |    
                        CFPResponseFn --+
                                        |
                                       CFPRF_Plugin
Known Subclasses:

Generic large-scale response function based on a simple single-CF function.

Applies the single_cf_fn to each CF in turn. For the default single_cf_fn of DotProduct(), does a basic dot product of each CF with the corresponding slice of the input array. This function is likely to be slow to run, but it is easy to extend with any arbitrary single-CF response function.

The single_cf_fn must be a function f(X,W) that takes two identically shaped matrices X (the input) and W (the ConnectionField weights) and computes a scalar activation value based on those weights.

Nested Classes [hide private]

Inherited from param.parameterized.Parameterized: __metaclass__

Instance Methods [hide private]
 
__call__(self, iterator, input_activity, activity, strength) source code

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

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

Class Methods [hide private]

Inherited from param.parameterized.Parameterized: params, print_param_defaults

Class Variables [hide private]
  single_cf_fn = param.ClassSelector(ResponseFn, default= DotPro...
Accepts a ResponseFn that will be applied to each CF individually.

Inherited from param.parameterized.Parameterized: name, print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__call__(self, iterator, input_activity, activity, strength)
(Call operator)

source code 
Overrides: CFPResponseFn.__call__

Class Variable Details [hide private]

single_cf_fn

Accepts a ResponseFn that will be applied to each CF individually.
Value:
param.ClassSelector(ResponseFn, default= DotProduct(), doc= "Accepts a ResponseFn \
that will be applied to each CF individually.")