Package topo :: Package sheets :: Module cfsom :: Class CFSOM
[hide private]
[frames] | no frames]

Class CFSOM

source code

                                  object --+                    
                                           |                    
base.parameterizedobject.ParameterizedObject --+                
                                               |                
                  base.simulation.EventProcessor --+            
                                                   |            
                                      object --+   |            
                                               |   |            
          base.sheetcoords.SheetCoordinateSystem --+            
                                                   |            
                                    base.sheet.Sheet --+        
                                                       |        
                         base.projection.ProjectionSheet --+    
                                                           |    
                                             base.cf.CFSheet --+
                                                               |
                                                              CFSOM

Kohonen Self-Organizing Map algorithm extended to support ConnectionFields.

This is an implementation of the Kohonen SOM algorithm extended to support ConnectionFields, i.e., different spatially restricted input regions for different units. With fully connected input regions, it should be usable as a regular SOM as well.

This implementation is obsolete and will be removed soon. Please see examples/cfsom_or.ty for current SOM support.



Nested Classes [hide private]

Inherited from base.parameterizedobject.ParameterizedObject: __metaclass__

Instance Methods [hide private]
 
__init__(self, **params)
Initialize this object as an EventProcessor, then also as a SheetCoordinateSystem with equal xdensity and ydensity.
source code
 
decay(self, time, half_life)
Exponential decay.
source code
 
alpha(self)
Return the learning rate at a specified simulation time, using exponential falloff.
source code
 
radius(self)
Return the radius at a specified simulation time, using exponential falloff.
source code
 
learn(self)
Call the learn() method on every CFProjection to the Sheet.
source code

Inherited from base.cf.CFSheet: release_unit_view, update_unit_view

Inherited from base.projection.ProjectionSheet: activate, input_event, override_plasticity_state, present_input, process_current_time, projections, restore_plasticity_state

Inherited from base.sheet.Sheet: activity_len, release_sheet_view, row_col_sheetcoords, sheet_cols, sheet_offset, sheet_rows, state_pop, state_push

Inherited from base.simulation.EventProcessor: script_repr, send_output, start

Inherited from base.simulation.EventProcessor (private): _src_connect

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 base.sheetcoords.SheetCoordinateSystem: bounds2slice, closest_cell_center, matrix2sheet, matrixidx2sheet, sheet2matrix, sheet2matrixidx, sheetcoordinates_of_matrixidx, slice2bounds

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]
  alpha_0 = Number(0.5, doc= "Initial value of the learning rate.")
Initial value of the learning rate.
  radius_0 = <topo.base.parameterclasses.Number object at 0xa8f2...
Initial value of the neighborhood radius.
  precedence = <topo.base.parameterclasses.Number object at 0xa8...
Allows a sorting order for Sheets, e.g.
  learning_length = <topo.base.parameterclasses.Number object at...
Number of input presentations to use, by default.

Inherited from base.cf.CFSheet: measure_maps

Inherited from base.projection.ProjectionSheet: apply_output_fn, dest_ports, mask, output_fn, src_ports

Inherited from base.sheet.Sheet: layout_location, nominal_bounds, nominal_density, plastic

Inherited from base.parameterizedobject.ParameterizedObject: name, print_level

Properties [hide private]

Inherited from base.sheetcoords.SheetCoordinateSystem: shape, xdensity, ydensity

Inherited from object: __class__

Method Details [hide private]

__init__(self, **params)
(Constructor)

source code 

Initialize this object as an EventProcessor, then also as a SheetCoordinateSystem with equal xdensity and ydensity.

sheet_views is a dictionary that stores SheetViews, i.e. representations of the sheet for use by analysis or plotting code.

Overrides: base.projection.ProjectionSheet.__init__

learn(self)

source code 
Call the learn() method on every CFProjection to the Sheet.
Overrides: base.projection.ProjectionSheet.learn

Class Variable Details [hide private]

radius_0

Initial value of the neighborhood radius.
Value:
Number(1.0, doc= "Initial value of the neighborhood radius.")

precedence

Allows a sorting order for Sheets, e.g. in the GUI.
Value:
Number(0.6)

learning_length

Number of input presentations to use, by default.
Value:
Number(1000, doc= "Number of input presentations to use, by default.")