Package pyrobot :: Package brain :: Module conx :: Class Connection
[frames | no frames]

Class Connection


Class which contains references to two layers (from and to) and the
weights between them.

Method Summary
  __init__(self, fromLayer, toLayer)
Constructor for Connection class.
  __str__(self)
  changeSize(self, fromLayerSize, toLayerSize)
Changes the size of the connection depending on the size change of either source or destination layer.
  display(self)
Displays connection information to the screen.
  initialize(self)
Initializes self.dweight and self.wed to zero matrices.
  randomize(self)
Sets weights to initial random values in the range [-max, max].
  toString(self)
Connection information as a string.

Method Details

__init__(self, fromLayer, toLayer)
(Constructor)

Constructor for Connection class. Takes instances of source and
destination layers as arguments.

changeSize(self, fromLayerSize, toLayerSize)

Changes the size of the connection depending on the size
change of either source or destination layer. Should only be
called through Network.changeLayerSize().

display(self)

Displays connection information to the screen.

initialize(self)

Initializes self.dweight and self.wed to zero matrices.

randomize(self)

Sets weights to initial random values in the range [-max, max].

toString(self)

Connection information as a string.

Generated by Epydoc 2.1 on Mon Jul 25 01:39:28 2005 http://epydoc.sf.net