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

Class InputLayer

AbstractLayer --+
                |
               InputLayer


Method Summary
  __init__(self, num_nodes, next_layer)
Initialize the input layer.
  backpropagate(self, outputs, learning_rate, momentum)
Recalculate all weights based on the last round of prediction.
  update(self, inputs)
Update the values of the nodes using given inputs.
    Inherited from AbstractLayer
  __str__(self)
Debugging output.
  set_weight(self, this_node, next_node, value)
Set a weight value from one node to the next.

Method Details

__init__(self, num_nodes, next_layer)
(Constructor)

Initialize the input layer.

Arguments:

o num_nodes -- The number of nodes in the input layer.

o next_layer -- The next layer in the neural network this is connected to.
Overrides:
Bio.NeuralNetwork.BackPropagation.Layer.AbstractLayer.__init__

backpropagate(self, outputs, learning_rate, momentum)

Recalculate all weights based on the last round of prediction.

Arguments:

o learning_rate -- The learning rate of the network

o momentum - The amount of weight to place on the previous weight change.

o outputs - The output info we are using to calculate error.

update(self, inputs)

Update the values of the nodes using given inputs.

Arguments:

o inputs -- A list of inputs into the network -- this must be equal to the number of nodes in the layer.

Generated by Epydoc 2.1 on Thu Mar 31 20:15:52 2005 http://epydoc.sf.net