| Home | Trees | Indices | Help |
|
|---|
|
|
Simple functions operating on a matrix, potentially modifying it.
These are useful for neuron output functions, normalization of matrices, etc.
All of these function objects (callable objects) should work for Numpy array arguments of arbitrary shape. Some may also work for scalars.
$Id: basic.py 8029 2008-02-19 15:16:24Z ceball $
Version: $Revision: 8029 $
|
|||
|
OutputFn Function object to modify a matrix in place, e.g. |
|||
|
IdentityOF Identity function, returning its argument as-is. |
|||
|
PipelineOF Applies a list of other OutputFns in order, to combine their effects. |
|||
|
Pipeline Applies a list of other OutputFns in order, to combine their effects. |
|||
|
PiecewiseLinear Piecewise-linear OutputFn with lower and upper thresholds. |
|||
|
Sigmoid Sigmoidal (logistic) output function: 1/(1+exp-(r*x+k)). |
|||
|
NakaRushton Naka-Rushton curve. |
|||
|
GeneralizedLogistic The generalized logistic curve (Richards' curve): y = l + (u /(1 + b * exp(-r*(x-2*m))^(1/b))). |
|||
|
DivisiveNormalizeL1 OutputFn that divides an array by its L1 norm. |
|||
|
DivisiveNormalizeL2 OutputFn to divide an array by its Euclidean length (aka its L2 norm). |
|||
|
DivisiveNormalizeLinf OutputFn to divide an array by its L-infinity norm (i.e. |
|||
|
DivisiveNormalizeLp OutputFn to divide an array by its Lp-Norm, where p is specified. |
|||
|
HalfRectifyAndSquare Output function that applies a half-wave rectification (clips at zero) and then squares the values. |
|||
|
HalfRectify Output function that applies a half-wave rectification (clips at zero) |
|||
|
Square Output function that applies a squaring nonlinearity. |
|||
|
BinaryThreshold Forces all values below a threshold to zero, and above it to 1.0. |
|||
|
PatternCombine Combine the supplied pattern with one generated using a PatternGenerator. |
|||
|
KernelMax Replaces the given matrix with a kernel function centered around the maximum value. |
|||
|
PoissonSample Simulate Poisson-distributed activity with specified mean values. |
|||
|
OutputFnWithState Abstract base class for OutputFns that need to maintain a self.plastic parameter. |
|||
|
AttributeTrackingOF Keeps track of attributes of a specified ParameterizedObject over time, for analysis or plotting. |
|||
|
ActivityAveragingOF Calculates the average of the input activity. |
|||
|
HomeostaticMaxEnt Implementation of homeostatic intrinsic plasticity from Jochen Triesch, ICANN 2005, LNCS 3696 pp.65-70. |
|||
|
ScalingOF Scales input activity based on the current average activity (x_avg). |
|||
|
|||
exp = <ufunc 'exp'>
|
|||
activity_type =
|
|||
k =
|
|||
v =
|
|||
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Thu Feb 21 15:25:02 2008 | http://epydoc.sourceforge.net |