org.encog.neural.pnn
Class PersistBasicPNN
- java.lang.Object
-
- org.encog.neural.pnn.PersistBasicPNN
-
- All Implemented Interfaces:
- EncogPersistor
public class PersistBasicPNN extends java.lang.Object implements EncogPersistor
Persist a PNN.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringPROPERTY_outputModeThe output mode property.
-
Constructor Summary
Constructors Constructor and Description PersistBasicPNN()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetFileVersion()java.lang.StringgetPersistClassString()static java.lang.StringkernelToString(PNNKernelType k)Convert a kernel type to a string.static java.lang.StringoutputModeToString(PNNOutputMode mode)Convert output mode to string.java.lang.Objectread(java.io.InputStream is)Read the object from an input stream.voidsave(java.io.OutputStream os, java.lang.Object obj)Save the object.static PNNKernelTypestringToKernel(java.lang.String k)Convert a string to a PNN kernel.static PNNOutputModestringToOutputMode(java.lang.String mode)Convert a string to a PNN output mode.
-
-
-
Field Detail
-
PROPERTY_outputMode
public static final java.lang.String PROPERTY_outputMode
The output mode property.- See Also:
- Constant Field Values
-
-
Method Detail
-
kernelToString
public static java.lang.String kernelToString(PNNKernelType k)
Convert a kernel type to a string.- Parameters:
k- The kernel type.- Returns:
- The string.
-
outputModeToString
public static java.lang.String outputModeToString(PNNOutputMode mode)
Convert output mode to string.- Parameters:
mode- The output mode.- Returns:
- The string.
-
stringToKernel
public static PNNKernelType stringToKernel(java.lang.String k)
Convert a string to a PNN kernel.- Parameters:
k- The string.- Returns:
- The kernel.
-
stringToOutputMode
public static PNNOutputMode stringToOutputMode(java.lang.String mode)
Convert a string to a PNN output mode.- Parameters:
mode- The string.- Returns:
- The output ndoe.
-
getFileVersion
public int getFileVersion()
- Specified by:
getFileVersionin interfaceEncogPersistor- Returns:
- Get the file version used by this persistor.
-
getPersistClassString
public java.lang.String getPersistClassString()
- Specified by:
getPersistClassStringin interfaceEncogPersistor- Returns:
- Get the class string for the object.
-
read
public java.lang.Object read(java.io.InputStream is)
Read the object from an input stream.- Specified by:
readin interfaceEncogPersistor- Parameters:
is- The input stream.- Returns:
- The object.
-
save
public void save(java.io.OutputStream os, java.lang.Object obj)Save the object.- Specified by:
savein interfaceEncogPersistor- Parameters:
os- The output stream to save to.obj- The object to save.
-
-
DMelt 3.0 © DataMelt by jWork.ORG