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

Class SharedWeightCFProjection

source code

                                  object --+                
                                           |                
base.parameterizedobject.ParameterizedObject --+            
                                               |            
                    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 base.parameterizedobject.ParameterizedObject: __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 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 output functions for SharedWeightCFProjections, so we disable them here.
source code

Inherited from base.cf.CFProjection: activate, cf, create_mask_template, get_projection_view, get_shape, get_view, initialize_bounds, n_units

Inherited from base.projection.Projection: override_plasticity_state, restore_plasticity_state

Inherited from base.simulation.EPConnection: remove, script_repr

Inherited from base.parameterizedobject.ParameterizedObject: __getstate__, __repr__, __setstate__, __str__, as_uninitialized, debug, defaults, force_new_dynamic_value, get_param_values, get_value_generator, inspect_value, message, print_param_values, verbose, warning

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

Class Methods [hide private]

Inherited from base.parameterizedobject.ParameterizedObject: params, print_param_defaults

Class Variables [hide private]
  learning_fn = <topo.base.parameterclasses.ClassSelectorParamet...
Function for computing changes to the weights based on one activation step.
  output_fn = <topo.base.parameterclasses.ClassSelectorParameter...
Function applied to the Projection activity after it is computed.
  weights_output_fn = <topo.base.parameterclasses.ClassSelectorP...
Function applied to each CF after learning.

Inherited from base.cf.CFProjection: allow_null_cfs, autosize_mask, cf_type, coord_mapper, learning_rate, min_matrix_radius, nominal_bounds_template, response_fn, strength, weights_generator, weights_shape

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

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

Inherited from base.parameterizedobject.ParameterizedObject: name, print_level

Properties [hide private]

Inherited from base.cf.CFProjection: cfs_shape

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: base.cf.CFProjection.__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 output functions for SharedWeightCFProjections, so we disable them here.
Overrides: base.cf.CFProjection.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 output functions for SharedWeightCFProjections, so we disable them here.
Overrides: base.cf.CFProjection.apply_learn_output_fn

Class Variable Details [hide private]

learning_fn

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

output_fn

Function applied to the Projection activity after it is computed.
Value:
ClassSelectorParameter(OutputFn, default= IdentityOF())

weights_output_fn

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