| Home | Trees | Index | Help |
|
|---|
| Package pyrobot :: Package brain :: Module conx :: Class Connection |
|
Class which contains references to two layers (from and to) and the weights between them.
| Method Summary | |
|---|---|
Constructor for Connection class. | |
__str__(self)
| |
Changes the size of the connection depending on the size change of either source or destination layer. | |
Displays connection information to the screen. | |
Initializes self.dweight and self.wed to zero matrices. | |
Sets weights to initial random values in the range [-max, max]. | |
Connection information as a string. | |
| Method Details |
|---|
__init__(self,
fromLayer,
toLayer)
|
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. |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Jul 25 01:39:28 2005 | http://epydoc.sf.net |