Table of Contents

Class: InputLayer Bio/NeuralNetwork/BackPropagation/Layer.py
Base Classes   
AbstractLayer
Methods   
__init__
backpropagate
update
  __init__ 
__init__ (
        self,
        num_nodes,
        next_layer,
        )

Initialize the input layer.

Arguments:

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

  • next_layer -- The next layer in the neural network this is connected to.

  backpropagate 
backpropagate (
        self,
        outputs,
        learning_rate,
        momentum,
        )

Recalculate all weights based on the last round of prediction.

Arguments:

  • learning_rate -- The learning rate of the network

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

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

  update 
update ( self,  inputs )

Update the values of the nodes using given inputs.

Arguments:

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

Exceptions   
ValueError( "Inputs do not match input layer nodes." )

Table of Contents

This document was automatically generated on Mon Jul 1 12:03:11 2002 by HappyDoc version 2.0.1