org.encog.neural.pnn
public class PersistBasicPNN extends Object implements EncogPersistor
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_outputMode
The output mode property.
|
Constructor and Description |
---|
PersistBasicPNN() |
Modifier and Type | Method and Description |
---|---|
int |
getFileVersion() |
String |
getPersistClassString() |
static String |
kernelToString(PNNKernelType k)
Convert a kernel type to a string.
|
static String |
outputModeToString(PNNOutputMode mode)
Convert output mode to string.
|
Object |
read(InputStream is)
Read the object from an input stream.
|
void |
save(OutputStream os,
Object obj)
Save the object.
|
static PNNKernelType |
stringToKernel(String k)
Convert a string to a PNN kernel.
|
static PNNOutputMode |
stringToOutputMode(String mode)
Convert a string to a PNN output mode.
|
public static final String PROPERTY_outputMode
public static String kernelToString(PNNKernelType k)
k
- The kernel type.public static String outputModeToString(PNNOutputMode mode)
mode
- The output mode.public static PNNKernelType stringToKernel(String k)
k
- The string.public static PNNOutputMode stringToOutputMode(String mode)
mode
- The string.public int getFileVersion()
getFileVersion
in interface EncogPersistor
public String getPersistClassString()
getPersistClassString
in interface EncogPersistor
public Object read(InputStream is)
read
in interface EncogPersistor
is
- The input stream.public void save(OutputStream os, Object obj)
save
in interface EncogPersistor
os
- The output stream to save to.obj
- The object to save.Copyright © 2014. All Rights Reserved.