Table of Contents

Class: AbstractLayer Bio/NeuralNetwork/BackPropagation/Layer.py

Abstract base class for all layers.

Methods   
__init__
__str__
set_weight
  __init__ 
__init__ (
        self,
        num_nodes,
        has_bias_node,
        )

Initialize the layer.

Arguments:

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

  • 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.

  __str__ 
__str__ ( self )

Debugging output.

  set_weight 
set_weight (
        self,
        this_node,
        next_node,
        value,
        )

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.

Exceptions   
ValueError( "Invalid node values passed." )

Table of Contents

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