|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.joone.util.MonitorPlugin
org.joone.util.SnapshotPlugin
org.joone.util.SnapshotRecorder
public class SnapshotRecorder
A SnapshotRecorder serves to create and record snapshots of a neural network in a file as a serie of serialized objects graphs. A new clone of the network is generated for each snapshot and only the core part (between the input-layer and the output-layer) is kept.
Field Summary | |
---|---|
static java.lang.String |
JOONE_FORMAT
The Joone snapshot format (NeuralNet serialized objects graph) |
static java.lang.String |
VISAD_FORMAT
The VisAD snapshot format (NeuralNetData serialized objects graph). |
Constructor Summary | |
---|---|
SnapshotRecorder()
|
Method Summary | |
---|---|
protected void |
doSnapshot()
Generates a snapshot of the current state of the network, |
protected void |
doStart()
Creates the output stream used to write snapshots. |
protected void |
doStop()
Flush the output buffer and close the file. |
java.lang.String |
getFilename()
Get the name of the file to which snapshots will be written. |
java.lang.String |
getFormat()
Get the format used for snapshots. |
protected void |
manageStopError(Monitor mon,
java.lang.String msgErr)
|
void |
setFilename(java.lang.String name)
Set the name of the file to which snapshots will be written. |
void |
setFormat(java.lang.String format)
Set the format used for snapshots. |
Methods inherited from class org.joone.util.SnapshotPlugin |
---|
manageCycle, manageError, manageStart, manageStop |
Methods inherited from class org.joone.util.MonitorPlugin |
---|
cicleTerminated, errorChanged, getName, getNeuralNet, getRate, netStarted, netStopped, netStoppedError, setName, setNeuralNet, setRate, toBeManaged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String JOONE_FORMAT
public static final java.lang.String VISAD_FORMAT
Constructor Detail |
---|
public SnapshotRecorder()
Method Detail |
---|
protected void doStart()
doStart
in class SnapshotPlugin
net
- the current neural networkprotected void doSnapshot()
doSnapshot
in class SnapshotPlugin
net
- the current neural networkprotected void doStop()
doStop
in class SnapshotPlugin
net
- the current neural networkpublic void setFilename(java.lang.String name)
name
- the new snapshots file name.public java.lang.String getFilename()
public java.lang.String getFormat()
public void setFormat(java.lang.String format)
format
- the new snapshots formatprotected void manageStopError(Monitor mon, java.lang.String msgErr)
manageStopError
in class MonitorPlugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |