org.encog.persist.persistors
Class BasicLayerPersistor

java.lang.Object
  extended by org.encog.persist.persistors.BasicLayerPersistor
All Implemented Interfaces:
Persistor

public class BasicLayerPersistor
extends Object
implements Persistor

Provides basic functions that many of the persistors will need.

Author:
jheaton

Field Summary
static String PROPERTY_BIAS_ACTIVATION
          The bias activation.
static String PROPERTY_NEURONS
          The neurons property.
static String PROPERTY_THRESHOLD
          The bias property, stores the bias weights.
static String PROPERTY_X
          The x-coordinate to place this object at.
static String PROPERTY_Y
          The y-coordinate to place this object at.
static String TAG_ACTIVATION
          The activation function tag.
 
Constructor Summary
BasicLayerPersistor()
           
 
Method Summary
 EncogPersistedObject load(ReadXML in)
          Load the specified Encog object from an XML reader.
static ActivationFunction loadActivation(String type, ReadXML in)
           
 void save(EncogPersistedObject obj, WriteXML out)
          Save the specified Encog object to an XML writer.
static void saveActivationFunction(ActivationFunction activationFunction, WriteXML out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_ACTIVATION

public static final String TAG_ACTIVATION
The activation function tag.

See Also:
Constant Field Values

PROPERTY_NEURONS

public static final String PROPERTY_NEURONS
The neurons property.

See Also:
Constant Field Values

PROPERTY_THRESHOLD

public static final String PROPERTY_THRESHOLD
The bias property, stores the bias weights.

See Also:
Constant Field Values

PROPERTY_BIAS_ACTIVATION

public static final String PROPERTY_BIAS_ACTIVATION
The bias activation.

See Also:
Constant Field Values

PROPERTY_X

public static final String PROPERTY_X
The x-coordinate to place this object at.

See Also:
Constant Field Values

PROPERTY_Y

public static final String PROPERTY_Y
The y-coordinate to place this object at.

See Also:
Constant Field Values
Constructor Detail

BasicLayerPersistor

public BasicLayerPersistor()
Method Detail

load

public EncogPersistedObject load(ReadXML in)
Load the specified Encog object from an XML reader.

Specified by:
load in interface Persistor
Parameters:
in - The XML reader to use.
Returns:
The loaded object.

save

public void save(EncogPersistedObject obj,
                 WriteXML out)
Save the specified Encog object to an XML writer.

Specified by:
save in interface Persistor
Parameters:
obj - The object to save.
out - The XML writer to save to.

saveActivationFunction

public static void saveActivationFunction(ActivationFunction activationFunction,
                                          WriteXML out)

loadActivation

public static ActivationFunction loadActivation(String type,
                                                ReadXML in)


Copyright © 2011. All Rights Reserved.