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

Class CFPLearningFn

source code


Compute new CFs for a CFProjection based on input and output activity values.

Objects in this hierarchy of callable function objects compute a new set of CFs when given input and output patterns and a set of ConnectionField objects. Used for updating the weights of one CFProjection.

Objects in this class must support being called as a function with the arguments specified below.

Nested Classes [hide private]

Inherited from param.parameterized.Parameterized: __metaclass__

Instance Methods [hide private]
 
constant_sum_connection_rate(self, n_units, learning_rate)
Return the learning rate for a single connection assuming that the total rate is to be divided evenly among all the units in the connection field.
source code
 
__call__(self, iterator, input_activity, output_activity, learning_rate, **params)
Apply this learning function to the given set of ConnectionFields, and input and output activities, using the given learning_rate.
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_default, set_dynamic_time_fn, set_param, state_pop, state_push, 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]
  __abstract = True
bool(x) -> bool
  name = <param.parameterized.String object at 0xa9aaeac>
String identifier for this object.

Inherited from param.parameterized.Parameterized: print_level

Properties [hide private]

Inherited from object: __class__

Class Variable Details [hide private]

__abstract

bool(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.

Value:
True