Package Bio :: Package NeuralNetwork :: Package BackPropagation :: Module Layer :: Class AbstractLayer
[hide private]
[frames] | no frames]

Class AbstractLayer

source code

object --+
         |
        AbstractLayer
Known Subclasses:

Abstract base class for all layers.
    

Instance Methods [hide private]
 
__init__(self, num_nodes, has_bias_node)
Initialize the layer.
source code
 
__str__(self)
Debugging output.
source code
 
set_weight(self, this_node, next_node, value)
Set a weight value from one node to the next.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, num_nodes, has_bias_node)
(Constructor)

source code 
Initialize the layer.

Arguments:

o num_nodes -- The number of nodes that are contained in this layer.

o has_bias_node -- Specify whether or not this node has a bias
node. This node is not included in the number of nodes in the network,
but is used in constructing and dealing with the network.

Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 
Debugging output.
        

Overrides: object.__str__

set_weight(self, this_node, next_node, value)

source code 
Set a weight value from one node to the next.

If weights are not explicitly set, they will be initialized to
random values to start with.