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

Class SharedWeightCF

source code

                       object --+        
                                |        
param.parameterized.Parameterized --+    
                                    |    
              base.cf.ConnectionField --+
                                        |
                                       SharedWeightCF

Nested Classes [hide private]

Inherited from param.parameterized.Parameterized: __metaclass__

Instance Methods [hide private]
 
__init__(self, cf, input_sheet, x=0.0, y=0.0, template=BoundingBox(radius=0.1), mask=None)
From an existing copy of ConnectionField (CF) that acts as a template, create a new CF that shares weights with the template CF.
source code

Inherited from base.cf.ConnectionField: change_bounds, change_density, get_bounds, get_input_matrix

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, script_repr, 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]

Inherited from base.cf.ConnectionField: min_matrix_radius, x, y

Inherited from base.cf.ConnectionField (private): _has_norm_total

Inherited from param.parameterized.Parameterized: name, print_level

Properties [hide private]

Inherited from base.cf.ConnectionField: bounds, input_sheet_slice, mask, norm_total, weights

Inherited from object: __class__

Method Details [hide private]

__init__(self, cf, input_sheet, x=0.0, y=0.0, template=BoundingBox(radius=0.1), mask=None)
(Constructor)

source code 

From an existing copy of ConnectionField (CF) that acts as a template, create a new CF that shares weights with the template CF. Copies all the properties of CF to stay identical except the weights variable that actually contains the data.

The only difference from a normal CF is that the weights of the CF are implemented as a numpy view into the single master copy of the weights stored in the CF template.

Overrides: object.__init__