public class SnapshotRecorder extends SnapshotPlugin implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
SnapshotRecorder() |
Modifier and Type | Method and Description |
---|---|
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.
|
manageCycle, manageError, manageStart, manageStop
cicleTerminated, errorChanged, getName, getNeuralNet, getRate, netStarted, netStopped, netStoppedError, setName, setNeuralNet, setRate, toBeManaged
public static final java.lang.String JOONE_FORMAT
public static final java.lang.String VISAD_FORMAT
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
Submit Feedback to pmarrone@users.sourceforge.net