|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.generation5.nn.NeuralNetworkTrainer
This class is intended to provide a common interface for the more complicated
neural network training algorithms, such as a multi-stage Kohonen training
algorithm. NeuralNetwork.train(double[], double[])
should only implement one iteration of the training algorithm, and if this
algorithm has multiple stages, variables or other complicating factors, it
may be easier to use NeuralNetworkTrainer to provide the overall
framework.
In addition to this, a NeuralNetworkTrainer-derived class can be
created to deal with a specific training situation. Continuing with our Kohonen
example, you could create a trainer for simple 2D shapes, mapping RGB colours,
or complex image association.
Finally, NeuralNetworkTrainer also implements Steppable
adding greater flexibility/integration when creating demonstration applets/
applications.
NeuralNetwork.train(double[], double[])| Field Summary | |
protected Notifier |
notifier
A simple interface that allows a NeuralNetworkTrainer to notify
additional classes about events. |
| Constructor Summary | |
NeuralNetworkTrainer()
Creates a new instance of NeuralNetworkTrainer |
|
| Method Summary | |
abstract void |
doStep()
Advance the training one step. |
abstract NeuralNetwork |
getNetwork()
Return the network being used. |
abstract void |
init()
Initialize the training algorithm. |
abstract boolean |
isComplete()
Returns true is training is complete. |
void |
reset()
Reset the training algorithm (defaults to calling init). |
void |
run()
Run the training algorithm. |
abstract void |
setNetwork(NeuralNetwork net)
Set the network being used by the trainer. |
void |
setNotifier(Notifier notify)
Set the notifier for this class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Notifier notifier
NeuralNetworkTrainer to notify
additional classes about events.
| Constructor Detail |
public NeuralNetworkTrainer()
| Method Detail |
public abstract void setNetwork(NeuralNetwork net)
net - the network to be trained.public abstract NeuralNetwork getNetwork()
public void setNotifier(Notifier notify)
notify - the neural network notifier.public abstract boolean isComplete()
public abstract void doStep()
doStep in interface Steppablepublic abstract void init()
init in interface Steppablepublic void reset()
init).
reset in interface Steppablepublic void run()
public void run() {
while (!isComplete()) {
doStep();
}
}
|
This documentation is part of the Generation5 JDK.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||