|
|
ConstructRandomWeights(self,
minWeight=-1,
maxWeight=1)
initialize all the weights in the network to random numbers
**Arguments**
- minWeight: the minimum value a weight can take
- maxWeight: the maximum value a weight can take
**Note**
random numbers are assigned using _Numeric_'s _RandomArray_ module, so
if you want to be seeding the generators, be sure to hit that one too. |
source code
|
|
|
|
|
|
|
ConstructNodes(self,
nodeCounts,
actFunc,
actFuncParms)
build an unconnected network and set node counts
**Arguments**
- nodeCounts: a list containing the number of nodes to be in each layer. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ClassifyExample(self,
example,
appendExamples=0)
classifies a given example and returns the results of the output layer. |
source code
|
|
|
|
GetLastOutputs(self)
returns the complete list of output layer values from the last time this node classified anything |
source code
|
|
|
|
__str__(self)
provides a string representation of the network |
source code
|
|
|
|
__init__(self,
nodeCounts,
nodeConnections=None,
actFunc=<class 'ML.Neural.ActFuncs.Sigmoid'>,
actFuncParms=(),
weightBounds=1)
Constructor
This constructs and initializes the network based upon the specified
node counts. |
source code
|
|