|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.penguinwerks.jodene.managers.PocketManager
The pocket manager used to manage the networks in the pocket.
| Constructor Summary | |
PocketManager(java.lang.String pocketName,
java.lang.String error)
Creates a new instance of PocketManager |
|
| Method Summary | |
void |
cleanup()
Clean up the pocket contents at the end of training. |
int |
getLastUpdateEpoch()
Returns the epoch number when the pocket was last updated. |
double |
getLastUpdateError()
Returns the error of the network in the pocket. |
Network |
getNetwork()
Returns the network from the pocket. |
void |
saveNetwork(Network network,
Trainer trainer)
Saves the network to the pocket if it has a lower error than the existing version of the network. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PocketManager(java.lang.String pocketName,
java.lang.String error)
pocketName - The name of the pocket.error - The name of the error used for the pocket.| Method Detail |
public void saveNetwork(Network network,
Trainer trainer)
throws java.io.IOException,
java.io.FileNotFoundException,
java.lang.ClassNotFoundException
network - The network to add to the pocket.trainer - The trainer training the network.
IOException - Thrown if there is a problem saving the network.
FileNotFoundException - Thrown if there is a problem saving the network.
java.lang.ClassNotFoundException - Thrown if there is a problem saving the network.public void cleanup()
public Network getNetwork()
throws java.io.IOException,
java.lang.ClassNotFoundException
IOException - Thrown if ther is a problem getting the network.
java.lang.ClassNotFoundException - Thrown if there is a problem getting the network.
public int getLastUpdateEpoch()
throws java.io.FileNotFoundException,
java.io.IOException,
java.lang.ClassNotFoundException
FileNotFoundException - Thrown if there is a problem reading the epoch number.
IOException - Thrown if there is a problem reading the epoch number.
java.lang.ClassNotFoundException - Thrown if there is a problem reading the epoch number.
public double getLastUpdateError()
throws java.io.FileNotFoundException,
java.io.IOException,
java.lang.ClassNotFoundException
FileNotFoundException - Thrown if there is a problem.
IOException - Thrown if there is a problem.
java.lang.ClassNotFoundException - Thrown if there is a problem.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||