| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
param.parameterized.Parameterized --+
|
base.functionfamily.OutputFn --+
|
KernelMax
Replaces the given matrix with a kernel function centered around the maximum value.
This operation is usually part of the Kohonen SOM algorithm, and approximates a series of lateral interactions resulting in a single activity bubble.
The radius of the kernel (i.e. the surround) is specified by the parameter 'radius', which should be set before using __call__. The shape of the surround is determined by the neighborhood_kernel_generator, and can be any PatternGenerator instance, or any function accepting bounds, density, radius, and height to return a kernel matrix.
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
kernel_radius = param.Number(default= 0.0, bounds= (0, None), Kernel radius in Sheet coordinates. |
|||
neighborhood_kernel_generator = param.ClassSelector(PatternGenNeighborhood function |
|||
crop_radius_multiplier = param.Number(default= 3.0, doc= """ Factor by which the radius should be multiplied, when deciding how far from the winner to keep evaluating the kernel. |
|||
density = param.Number(1.0, bounds= (0, None), doc= Density of the Sheet whose matrix we act on, for use in converting from matrix to Sheet coordinates. |
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
|
|||
kernel_radiusKernel radius in Sheet coordinates.
|
neighborhood_kernel_generatorNeighborhood function
|
crop_radius_multiplierFactor by which the radius should be multiplied, when deciding how far from the winner to keep evaluating the kernel.
|
densityDensity of the Sheet whose matrix we act on, for use in converting from matrix to Sheet coordinates.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sat Oct 11 20:50:04 2008 | http://epydoc.sourceforge.net |