Trees | Index | Help |
---|
Package Bio :: Package NeuralNetwork :: Package BackPropagation :: Module Network :: Class BasicNetwork |
|
Represent a Basic Neural Network with three layers.
This deals with a Neural Network containing three layers:
o Input Layer
o Hidden Layer
o Output LayerMethod Summary | |
---|---|
Initialize the network with the three layers. | |
Predict outputs from the neural network with the given inputs. | |
Train the neural network to recognize particular examples. |
Method Details |
---|
__init__(self,
input_layer,
hidden_layer,
output_layer)
Initialize the network with the three layers.
|
predict(self, inputs)Predict outputs from the neural network with the given inputs. This uses the current neural network to predict outputs, no training of the neural network is done here. |
train(self, training_examples, validation_examples, stopping_criteria, learning_rate, momentum)Train the neural network to recognize particular examples. Arguments: o training_examples -- A list of TrainingExample classes that will be used to train the network. o validation_examples -- A list of TrainingExample classes that are used to validate the network as it is trained. These examples are not used to train so the provide an independent method of checking how the training is doing. Normally, when the error from these examples starts to rise, then it's time to stop training. o stopping_criteria -- A function, that when passed the number of iterations, the training error, and the validation error, will determine when to stop learning. o learning_rate -- The learning rate of the neural network. o momentum -- The momentum of the NN, which describes how much of the prevoious weight change to use. |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Jun 30 22:06:03 2005 | http://epydoc.sf.net |