Package topo :: Package outputfns
[hide private]
[frames] | no frames]

Source Code for Package topo.outputfns

 1  """ 
 2  A family of function objects for transforming a matrix generated from some other function. 
 3   
 4  Output functions are useful for neuron activation functions, 
 5  normalization of matrices, etc.  They come in two varieties: 
 6  OutputFunction, and CFPOutputFunction.  An OutputFunction 
 7  (e.g. PiecewiseLinear) applies to one matrix of any type, such as an 
 8  activity matrix or a set of weights.  To apply an OutputFunction to 
 9  all of the weight matrices in an entire CFProjection, an 
10  OutputFunction can be plugged in to CFPOF_Plugin.  CFPOF_Plugin is one 
11  example of a CFPOutputFunction, which is a function that works with 
12  the entire Projection at once. 
13   
14  Any new output functions added to this directory will automatically 
15  become available for any model. 
16   
17  $Id: __init__.py 7379 2007-12-15 22:54:55Z jbednar $ 
18  """ 
19  __version__='$Revision: 7379 $' 
20   
21  # Automatically discover all .py files in this directory, and import classes from basic.py.  
22  import os,fnmatch 
23  from basic import * 
24  __all__ = basic.__all__ + [f.split('.py')[0] for f in os.listdir(__path__[0]) if fnmatch.fnmatch(f,'[!._]*.py')] 
25  del f,os,fnmatch 
26