Package topo :: Package learningfn :: Module optimized :: Class CFPLF_Scaled_opt
[hide private]
[frames] | no frames]

Class CFPLF_Scaled_opt

source code

                       object --+            
                                |            
param.parameterized.Parameterized --+        
                                    |        
                base.cf.CFPLearningFn --+    
                                        |    
                projfn.CFPLF_PluginScaled --+
                                            |
                                           CFPLF_Scaled_opt

CF-aware Scaled Hebbian learning rule.

Implemented in C for speed. Should be equivalent to CFPLF_PluginScaled(single_cf_fn=Hebbian), except faster.

As a side effect, sets the norm_total attribute on any cf whose weights are updated during learning, to speed up later operations that might depend on it.

Nested Classes [hide private]

Inherited from param.parameterized.Parameterized: __metaclass__

Instance Methods [hide private]
 
__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 projfn.CFPLF_PluginScaled: update_scaling_factor

Inherited from base.cf.CFPLearningFn: constant_sum_connection_rate

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 param.parameterized.Parameterized (private): _add_parameter, _instantiate_param, _set_name, _setup_params

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]
  single_cf_fn = param.ClassSelector(LearningFn, default= Hebbia...
Accepts a LearningFn that will be applied to each CF individually.
  name = <param.parameterized.String object at 0xb27d80c>
String identifier for this object.

Inherited from projfn.CFPLF_PluginScaled: learning_rate_scaling_factor

Inherited from param.parameterized.Parameterized: print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__call__(self, iterator, input_activity, output_activity, learning_rate, **params)
(Call operator)

source code 
Apply this learning function to the given set of ConnectionFields, and input and output activities, using the given learning_rate.
Overrides: base.cf.CFPLearningFn.__call__
(inherited documentation)

Class Variable Details [hide private]

single_cf_fn

Accepts a LearningFn that will be applied to each CF individually.
Value:
param.ClassSelector(LearningFn, default= Hebbian(), readonly= True)