org.joone.util
Class SnapshotRecorder
- java.lang.Object
-
- org.joone.util.MonitorPlugin
-
- org.joone.util.SnapshotPlugin
-
- org.joone.util.SnapshotRecorder
-
- All Implemented Interfaces:
- java.io.Serializable, java.util.EventListener, NeuralNetListener
public class SnapshotRecorder extends SnapshotPlugin implements java.io.Serializable
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.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringJOONE_FORMATThe Joone snapshot format (NeuralNet serialized objects graph)static java.lang.StringVISAD_FORMATThe VisAD snapshot format (NeuralNetData serialized objects graph).
-
Constructor Summary
Constructors Constructor and Description SnapshotRecorder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetFilename()Get the name of the file to which snapshots will be written.java.lang.StringgetFormat()Get the format used for snapshots.voidsetFilename(java.lang.String name)Set the name of the file to which snapshots will be written.voidsetFormat(java.lang.String format)Set the format used for snapshots.-
Methods inherited from class org.joone.util.MonitorPlugin
cicleTerminated, errorChanged, getName, getNeuralNet, getRate, netStarted, netStopped, netStoppedError, setName, setNeuralNet, setRate
-
-
-
-
Field Detail
-
JOONE_FORMAT
public static final java.lang.String JOONE_FORMAT
The Joone snapshot format (NeuralNet serialized objects graph)- See Also:
- Constant Field Values
-
VISAD_FORMAT
public static final java.lang.String VISAD_FORMAT
The VisAD snapshot format (NeuralNetData serialized objects graph). Not yet implemented- See Also:
- Constant Field Values
-
-
Method Detail
-
setFilename
public void setFilename(java.lang.String name)
Set the name of the file to which snapshots will be written.- Parameters:
name- the new snapshots file name.
-
getFilename
public java.lang.String getFilename()
Get the name of the file to which snapshots will be written.- Returns:
- the current snapshots file name.
-
getFormat
public java.lang.String getFormat()
Get the format used for snapshots.- Returns:
- the current snapshots format
-
setFormat
public void setFormat(java.lang.String format)
Set the format used for snapshots. Legal values are: 'visad' or 'java'.- Parameters:
format- the new snapshots format
-
-
DataMelt 3.0 © DataMelt by jWork.ORG