Package topo :: Package projection :: Module basic :: Class SharedWeightCFProjection
[hide private]
[frames] | no frames]

Class SharedWeightCFProjection

source code

                       object --+                
                                |                
param.parameterized.Parameterized --+            
                                    |            
         base.simulation.EPConnection --+        
                                        |        
               base.projection.Projection --+    
                                            |    
                         base.cf.CFProjection --+
                                                |
                                               SharedWeightCFProjection

A Projection with a single set of weights, shared by all units.

Otherwise similar to CFProjection, except that learning is currently disabled.

Nested Classes [hide private]

Inherited from param.parameterized.Parameterized: __metaclass__

Instance Methods [hide private]
 
__init__(self, **params)
Initialize the Projection with a single cf_type object (typically a ConnectionField),
source code
 
change_bounds(self, nominal_bounds_template)
Change the bounding box for all of the ConnectionFields in this Projection.
source code
 
change_density(self, new_wt_density)
Rescales the weight matrix in place, interpolating or resampling as needed.
source code
 
learn(self)
Because of how output functions are applied, it is not currently possible to use learning functions and learning output functions for SharedWeightCFProjections, so we disable them here.
source code
 
apply_learn_output_fn(self, mask)
Because of how output functions are applied, it is not currently possible to use learning functions and learning output functions for SharedWeightCFProjections, so we disable them here.
source code

Inherited from base.cf.CFProjection: activate, cf, create_mask, get_view, n_units

Inherited from base.cf.CFProjection (private): _cleanup

Inherited from base.projection.Projection: get_projection_view, override_plasticity_state, restore_plasticity_state

Inherited from base.simulation.EPConnection: remove, script_repr

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, 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]
  learning_fn = param.ClassSelector(CFPLearningFn, CFPLF_Identit...
Function for computing changes to the weights based on one activation step.
  output_fn = param.ClassSelector(OutputFn, default= IdentityOF())
Function applied to the Projection activity after it is computed.
  weights_output_fn = param.ClassSelector(CFPOutputFn, default= ...
Function applied to each CF after learning.
  precedence = param.Number(default= 0.5)

Inherited from base.cf.CFProjection: allow_null_cfs, apply_output_fn_init, autosize_mask, cf_shape, cf_type, coord_mapper, learning_rate, nominal_bounds_template, response_fn, same_cf_shape_for_all_cfs, strength, weights_generator

Inherited from base.projection.Projection: activity_group, dest_port, plastic, src_port

Inherited from base.simulation.EPConnection: delay, dest, private, src

Inherited from param.parameterized.Parameterized: name, print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, **params)
(Constructor)

source code 
Initialize the Projection with a single cf_type object (typically a ConnectionField),
Overrides: object.__init__

change_bounds(self, nominal_bounds_template)

source code 

Change the bounding box for all of the ConnectionFields in this Projection.

Not yet implemented.

Overrides: base.cf.CFProjection.change_bounds

change_density(self, new_wt_density)

source code 

Rescales the weight matrix in place, interpolating or resampling as needed.

Not yet implemented.

Overrides: base.cf.CFProjection.change_density

learn(self)

source code 
Because of how output functions are applied, it is not currently possible to use learning functions and learning output functions for SharedWeightCFProjections, so we disable them here.
Overrides: base.projection.Projection.learn

apply_learn_output_fn(self, mask)

source code 
Because of how output functions are applied, it is not currently possible to use learning functions and learning output functions for SharedWeightCFProjections, so we disable them here.
Overrides: base.projection.Projection.apply_learn_output_fn

Class Variable Details [hide private]

learning_fn

Function for computing changes to the weights based on one activation step.
Value:
param.ClassSelector(CFPLearningFn, CFPLF_Identity(), constant= True)

weights_output_fn

Function applied to each CF after learning.
Value:
param.ClassSelector(CFPOutputFn, default= CFPOF_SharedWeight())