Package topo :: Package learningfn :: Module som :: Class CFPLF_SOM
[hide private]
[frames] | no frames]

Class CFPLF_SOM

source code


An abstract base class of learning functions for Self-Organizing Maps.

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 param.parameterized.Parameterized: __metaclass__

Instance Methods [hide private]
 
__init__(self, **params)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__call__(self, proj, 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 base.cf.CFPLearningFn: constant_sum_connection_rate

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_default, set_dynamic_time_fn, set_param, state_pop, state_push, verbose, warning

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]
  __abstract = True
bool(x) -> bool
  learning_radius = param.Number(default= 0.0, doc= ...
The radius of the neighborhood function to be used for learning.
  name = <param.parameterized.String object at 0xb26fc6c>
String identifier for this object.

Inherited from param.parameterized.Parameterized: print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, **params)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

__call__(self, proj, 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]

__abstract

bool(x) -> bool

Returns True when the argument x is true, False otherwise. The builtins True and False are the only two instances of the class bool. The class bool is a subclass of the class int, and cannot be subclassed.

Value:
True

learning_radius

The radius of the neighborhood function to be used for learning. Typically, this value will be set by the Sheet or Projection owning this CFPLearningFn, but it can also be set explicitly by the user.
Value:
param.Number(default= 0.0, doc= """
        The radius of the neighborhood function to be used for
        learning.  Typically, this value will be set by the Sheet or
        Projection owning this CFPLearningFn, but it can also be set
        explicitly by the user.
        """)